( Some help pages may not display correctly in html because those help pages may have sample codein them, part of which may be mis-interpreted as html tags.

All help pages, including this help page, are available in biterScripting with the help command. )

System Feature
precedence
Purpose
Specifies order in which operators are executed in expression.
Syntax
There is no explicit syntax. Precedence is implicit.
Description
Within an expression, we recommend generous use of parentheses (), which will ensure
that the expression is evaluated exactly as you intended. There is no limit on how many
parentheses can be used, and no limit on how many levels of parentheses can be used.
Without parentheses, operators are executed in the followning order of precedence.
operator operator Applicable Operand Types
name symbol real int str bool
--------------- --------------- --------------- --------------- --------------- ---------------
power ** Yes Y N N <===== HIGHEST PRECEDENCE
multiplication * Y Y N N
division / Y Y N N
addition + Y Y Y N
subtraction - Y Y N N
less than or equal to <= Y Y Y Y
greater than or equal to >= Y Y Y Y
equal to == Y Y Y Y
not equal to <> Y Y Y Y
less than < Y Y Y Y
greater than > Y Y Y Y
not NOT No N N Y
and AND N N N Y
or OR N N N Y <===== LOWEST PRECEDENCE
Operator of highest precedence is executed first.
Operator of lowest precedence is executed last.
Operators of higher precedence are executed before operators of lower precedence.
Among two operators of same precedence at the same level, operator on the left
is executed before the operator on the right.
Restrictions
Valid Examples
5 + 3 * 2
3 and 2 are multiplied first, then the result is added
to 5. Final result: 11.
$x < 7 AND $y ** 2 - 4 > 0
will be interpreted as
( ($x < 7) AND ( ( ($y ** 2) - 4) > 0) )
Invalid Examples
1024 / 2 * $x
$x will be multiplied by 2 and then 1024 will be
divided by the result. If you meant to multiply the result of (1024/2) by $x,
use
(1024 / 2) * $x .
See Also
conversionvar