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

lessp

lessp( 
n_num1 
n_num2 
) 
=> t / nil

Description

This predicate function checks if the first argument is less than the second argument. Prefix form of the < operator.

Arguments

n_num1

Number to be checked.

n_num2

Number against which n_num1 is checked.

Value Returned

t

n_num1 is less than n_num2.

nil

n_num1 is greater than or equal to n_num2.

Examples

lessp(2 2)   
=> nil
lessp(-2 2)  
=> t
lessp(3 2.2) 
=> nil

Related Topics

Logical and Relational Functions

geqp

greaterp

leqp


Return to top
 ⠀
X