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

leqp

leqp( 
n_num1 
n_num2 
) 
=> t / nil

Description

This predicate function checks if the first argument is less than or equal to 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 or equal to n_num2.

nil

n_num1 is greater than n_num2.

Examples

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

Related Topics

Logical and Relational Functions

geqp

greaterp

lessp


Return to top
 ⠀
X