Changes between Version 1 and Version 2 of ConditionalExpr
- Timestamp:
- 05/16/10 11:26:27 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ConditionalExpr
v1 v2 2 2 3 3 A conditional expression is an expression that produces a value that can be (conveniently) construed as a boolean 4 true or false value. 5 these are used directly in '''if''' and '''while''' flow control statements and the '''assert''' statement4 true or false value.[[BR]] 5 These are used directly in '''if''' and '''while''' flow control statements and the '''assert''' statement 6 6 7 7 Any of following can be used as conditional expressions and produce a '''boolean true''' value. … … 10 10 * non zero char 11 11 * not nil 12 12 * blank strings and empty collections are true (non nil) - must check .length for strings and .count for collections for checking non empty. 13 13 14 nil lable objects (e.g nillable boolean, nillable int) test true if both non nil and non nil object is 'true' (non false or non zero)14 nilable objects (e.g nilable boolean, nilable int) test true if both non nil and non nil object is 'true' (non false or non zero) 15 15 16 16 == Examples ==