20-sim webhelp > Language Reference > Operators > Boolean > or


or

Navigation:  Language Reference > Operators > Boolean >

or

Previous pageReturn to chapter overviewNext page

Syntax

a or b

Description

a or b performs a logical OR between a and b. If a or b are not booleans, 0 represents a logical false and any nonzero value represents a logical true. The truth table for this operator is shown below.

Table

a

b

a or b

false

false

false

false

true

true

true

false

true

true

true

true

Limitations

a and b must be scalars.