ScriptBasic:UsersGuide 9.10

From ScriptBasic
Revision as of 20:48, 10 December 2007 by Roberto lo Storto (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

[Contents]

9. General Language Format

9.10. Expressions

[<<<] [>>>]

9.10.1. Operators
9.10.1.1. Power operator (^)
9.10.1.2. Multiplication operator (*)
9.10.1.3. Division operator (/)
9.10.1.4. Integer division operator (\)
9.10.1.5. Modulus operator (%)
9.10.1.6. Addition and subtraction operators (+, -)
9.10.1.7. Bit-wise and logical NOT (NOT)
9.10.1.8. Equality operator (=)
9.10.1.9. Not equal operator (<>)
9.10.1.10. Compare operators (<, <=, >, >=)
9.10.1.11. Logical operators (and, or, xor)
9.10.1.12. Concatenation operator (&)
9.10.1.13. ByVal operator
9.10.1.14. LIKE operator
9.10.1.15. Extension operators
9.10.1.16. Planned, Future Operators

To calculate values you will need expressions. The simplest expression is the one that contains only a constant number or string of the format described in the previous sections. A bit more complex expression contains variables, array elements, operators, function calls, and even parentheses.ScriptBasic expression format is much the same as that of many other basic languages. The operators have precedence of the usual order, and you can alter the order of operator evaluation using parentheses. The operators are in order of precedence from the highest to the lowest:


[<<<] [>>>]

Personal tools
Variants
Actions
Navigation
Toolbox