Difference between revisions of "Gambas/reference"
< Gambas
Jump to navigation
Jump to search
(extracted stuff to subpages) |
(control structures links) |
||
Line 5: | Line 5: | ||
===control structures=== | ===control structures=== | ||
* IF / ENDIF | * IF / ENDIF | ||
+ | * [http://gambasdoc.org/help/cat/loop Loop Control Structures] | ||
+ | * [http://gambasdoc.org/help/cat/misc Miscellaneous Control Structures] | ||
+ | * [http://gambasdoc.org/help/cat/test Test Control Structures & Functions]: IF/THEN/ELSE/ENDIF; SELECT CASE; Choose(); Iif() | ||
===operators=== | ===operators=== | ||
* <s>[http://gambasdoc.org/help/cat/arithop arithmetic operations]</s>: page missing or moved | * <s>[http://gambasdoc.org/help/cat/arithop arithmetic operations]</s>: page missing or moved |
Revision as of 21:00, 24 April 2013
Pages
Language Elements
control structures
- IF / ENDIF
- Loop Control Structures
- Miscellaneous Control Structures
- Test Control Structures & Functions: IF/THEN/ELSE/ENDIF; SELECT CASE; Choose(); Iif()
operators
arithmetic operations: page missing or moved- assignment operators
- Variable = Expression: Direct assignment
- Variable += Expression: Assignment with addition (not available in Gambas 1.0.18)
- Variable -= Expression: Assignment with subtraction (not available in Gambas 1.0.18)
- Variable *= Expression: Assignment with multiplication (the rest of these are probably also not available in v1.0.18)
- Variable /= Expression: Assignment with division
- Variable \= Expression: Assignment with integer division (V = V \ E)
- Variable &= Expression: Assignment with string concatenation (V = V & E)
- Variable &/= Expression: Assignment with path concatenation (V = V &/ E)
- logical operators
- string operators
- String & String: concatenation of two strings
- String &/ String: concatenation of two strings containing file path parts; add a path separator if neither is empty
- String = String: strings are equal?
- String == String: strings are equal? (case-insensitive)
- String LIKE String: string matches a pattern?
- String <> String: strings are different?
- String1 < String2: String1 is "strictly lower" than String2?
- String1 > String2: String1 is "strictly greater" than String2?
- String1 <= String2: String1 is "lower than" or equal to String2?
- String1 >= String2: String1 is "greater than" or equal to String2?