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

nequal

nequal( 
g_arg1 
g_arg2 
) 
=> t / nil

Description

Checks if two arguments are not logically equivalent using the equal function and returns t if they are not.

g_arg1 and g_arg2 are only equal if they are either eqv or they are both lists/strings and their contents are the same.

Arguments

g_arg1

Any SKILL object.

g_arg2

Any SKILL object.

Value Returned

t

If g_arg1 and g_arg2 are not equal.

nil

f g_arg1 and g_arg2 are equal.

Examples

x = "cow"            
=> "cow"
nequal( x "cow" )    
=> nil
nequal( x "dog" )    
=> t
z = '(1 2 3)         
=> (1 2 3)
nequal(z z)          
=> nil
nequal('(1 2 3) z)   
=> nil

Related Topics

Logical and Relational Functions

neq

equal


Return to top
 ⠀
X