20-sim webhelp > Language Reference > Operators > Comparison > Less than


Less than

Navigation:  Language Reference > Operators > Comparison >

Less than

Previous pageReturn to chapter overviewNext page

Syntax

a < b

Description

The < operator compares two arguments and yields a boolean. If a is less than b, then a < b yields true. If a is equal or larger than b, then a < b yields false.

Example

a

b

a < b

1

2

true

1.01e2

101.0

false

31

1

false

-12

-11

true

Limitations

a and b must be scalars.