Prev Page Next Page
Operators
Previous Top Next

B4Script supports the following operators:

            ^                      Exponent (power) operator
            +,-,*,/              Basic math operators
            Mod                 Modulus operator
            &                     String concatenation
            AND               Logical AND of logical values
            OR                   Logical OR of logical values
            BitAnd            Bitwise AND of integer values
            BitOr               Bitwise OR of integer values
            BitXor             Bitwise XOR of integer values
            Rem                 Remarks, the line is ignored

The precedence of operators, including the conditional operators  is as follows, highest first. All operators listed on the same line associate left to right. Parentheses can be used to group expressions to force a different order of evaluation. Such parenthesised expressions can be nested and are evaluated from inner to outer.  In fact it is good practice to not rely upon operator precedence for more complex expressions but to explicitly parenthesise those expressions to explicitly indicate the required order of execution.


1)          ^
2)         * / Mod
3)         & + - BitAnd BitOr BitXor
4)         < > = <> >= <=
5)         AND OR





  
Prev Page Next Page
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)