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


Less than or Equal

Navigation:  Language Reference > Operators > Comparison >

Less than or Equal

Previous pageReturn to chapter overviewNext page

Syntax

a <= b

Description

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

Example

a

b

a < b

1

2

true

1.01e2

101.0

true

31

1

false

-12

-11

true

Limitations

a and b must be scalars.