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

neq

neq( 
g_arg1 
g_arg2 
) 
=> t / nil

Description

Checks if two arguments are not identical using the eq function and returns t if they are not. That is, g_arg1 and g_arg2 are tested to see if they are at the same address in memory.

Arguments

g_arg1

Any SKILL object.

g_arg2

Any SKILL object.

Value Returned

t

If g_arg1 and g_arg2 are not eq.

nil

If g_arg1 and g_arg2 are eq.

Examples

a = 'dog            
=> dog
neq( a 'dog )       
=> nil
neq( a 'cat )       
=> t
z = '(1 2 3)        
=> (1 2 3)
neq(z z)            
=> nil
neq('(1 2 3) z)     
=> t

Related Topics

Logical and Relational Functions

eq

equal

eqv

nequal


Return to top
 ⠀
X