[Contents] [Prev] [Next] [Index] [Report an Error]

Relational Operations

The relational operations compare the value of the expression to the left of the operator with the value of the expression to the right. The result of the comparison is 1 if the comparison is true and 0 if the comparison is false.

If the expressions on both sides of the operator are strings, they are compared alphabetically. If only one expression is a string, the numeric value is used for comparison. Arithmetic operators have a higher precedence.

Example

<# i := 9; i++ < 10 #>The result is 1
<# i := 9; ++i < 10 #>The result is 0

[Contents] [Prev] [Next] [Index] [Report an Error]