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

alphalessp

alphalessp( 
S_arg1 
S_arg2 
) 
=> t / nil 

Description

Compares two string or symbol names alphabetically.

This function returns t if the first argument is alphabetically less than the second argument. If S_arg is a symbol, then its name is its print name. If S_arg is a string, then its name is the string itself.

Arguments

S_arg1

First name you want to compare.

S_arg2

Name to compare against.

Value Returned

t

If S_arg1 is alphabetically less than the name of S_arg2.

nil

In all other cases.

Examples

alphalessp( "name" "name1" )   
=> t
alphalessp( "third" "fourth" )
=> nil
alphalessp('a 'ab)  
=> t

Related Topics

Logical and Relational Functions

strcmp

strncmp


Return to top
 ⠀
X