PRODUCT |

|

|
|
|

|
|
|
|
|
|
|
|
|
FAQ |
|
|

|
|
|
|
|
|
|
|
|
|
LEARN SCRIPTING |
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SAMPLE SCRIPTS |
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HELP / DOCUMENTATION |
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
Help Page - operator
( Some help pages may not display correctly in html because those help pages may have sample code in 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
Operator
Purpose
Describes various operators available.
Syntax
<operand1> ** <operand2>
<operand1> * <operand2>
<operand1> / <operand2>
<operand1> + <operand2>
<operand1> - <operand2>
<operand1> <= <operand2>
<operand1> >= <operand2>
<operand1> == <operand2>
<operand1> <> <operand2>
<operand1> < <operand2>
<operand1> > <operand2>
NOT <operand2>
<operand1> AND <operand2>
<operand1> OR <operand2>
Arguments
<operand1>
<operand2>
A constant, variable, expression, function call, inline command or a combination
of these resulting in a value of type applicable to the operator. The following
is a list of applicable types.
operator operator Applicable Operand Types
name symbol real int str bool
--------------- --------------- --------------- --------------- --------------- ---------------
power ** Yes Y N N
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
Description
The power operator (**) raises <operand1> to the power of <operand2>. It returns a
value of type same as the type of <operand>s.
The multiplication operator (*) multiplies <operand1> with <operand2>. It returns a
value of type same as the type of <operand>s.
The division operator (/) divides <operand1> by <operand2>. It returns a
value of type same as the type of <operand>s.
The addition operator (+) adds <operand1> and <operand2>, if <operand>s are int or real.
In case both <operand>s are str, it returns <operand1> appended by <operand2>. It returns a
value of type same as the type of <operands>.
The subtraction operator (-) subtracts <operand2> from <operand1>. It returns a
value of type same as the type of <operands>.
The less than or equal to operator (<=) returns a value of type bool. If <operand1> is
less than or equall to <operand2>, true is returned. Else, false is returned.
The greater than or equal to operator (>=) returns a value of type bool. It returns
true if <operand1> is greater than or equal to <operand2>. Else, false is returned.
The equal to operator (==) returns a value of type bool. It returns true if <operand1> is
equal to <operand2>. Else, false is returned.
The not equal to operator (<>) returns a value of type bool. It returns true if <operand1> is
not equal to <operand2>. Else, false is returned.
The less than operator (<) returns a value of type bool. It returns true if <operand1> is
less than <operand2>. Else, false is returned.
The greater than operator (>) returns a value of type bool. It returns true if <operand1> is
greater than <operand2>. Else, false is returned.
The not operator (NOT) returns a value of type bool. It returns true if <operand2> is false.
Else, false is returned.
The and operator (AND) returns a value of type bool. It returns true if both <operand1> and
<operand2> are true. Else, false is returned.
The or operator (OR) returns a value of type bool. It returns false if both <operand1> and
<operand2> are false. Else, true is returned.
In all cases, <operand1> and <operand2> remain unchanged.
We recommend generously using parentheses with operators. That will control the order
of operations precisely the way you intend. There is no limit on how many parentheses can
be used, or on how many levels of parentheses can be used.
Without parentheses, operations are performed in the order of operator precedence. See help page
on precedence for details.
If <operand> types are mixed, automatic conversion toward higher operability takes place, if
possible. See help page on conversion.
See Also
precedence
conversion
constant
var
|
|
|
© 2008-2010, biterScripting.com. All rights reserved.
biterScripting, biterScript, biterBrowser, biterScripting.com, FVA (Forward Variable Assignment) are trademarks of biterScripting.com. Is it biterScripting-compatible ? is a service mark of biterScripting.com.
Explorer, Unix, Windows are trademarks, service marks or other forms of intellectual property of their respective owners.
|
|