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

greaterp

greaterp( 
n_num1 
n_num2 
) 
=> t / nil

Description

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

nil

n_num1 is less than or equal to n_num2.

Examples

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

Related Topics

Logical and Relational Functions

geqp

leqp

lessp


Return to top
 ⠀
X