Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

eqv

eqv( 
g_general1 
g_general2 
) 
=> t / nil

Description

Tests for the equality between two strings or two numbers of the same type (for example, both numbers are integers). Except for numbers, eqv is like eq.

Arguments

g_general1

The first SKILL object.

g_general2

The second SKILL object.

Value Returned

t

g_general1 and g_general2 represent the same string or the same number.

nil

g_general1 and g_general2 does not represent the same string or the same number.

Examples

(eqv 1.5 1.5)                
=> t
(equal 1.5 1.5)              
=> t
(eq 1.5 1.5)                 
=> nil
(eqv (list 1 2) (list 1 2))  
=> nil
s1="world"
s2="world"
eqv(s1 s2)                   
=> t

Related Topics

Logical and Relational Functions

eq

equal


Return to top
 ⠀
X