Skip to content

lt

Syntax

lt(x1, x2)

Parameters

x1 : numeric-expression
left-hand argument.
x2 : numeric-expression
right-hand argument.

Returns

Returns 1 if x1 is less than x2. Returns 0 otherwise.

Description

Numeric comparison equivalent to the infix form x1 < x2.

Examples

Agents with an age less than 18 can be filtered into the state Select with the transition rule:

next_if(Select, lt(age(), 18))

or with the infix form:

next_if(Select, age() < 18)

See Also