Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
boolean_value_type [2011/08/02 20:34] hermann [Bool Type] |
boolean_value_type [2013/08/07 14:53] admin [Automatic Conversions] |
||
---|---|---|---|
Line 3: | Line 3: | ||
A [[wp>Boolean_value|boolean]] denotes two possible values: True (meaning yes) and False (meaning no). | A [[wp>Boolean_value|boolean]] denotes two possible values: True (meaning yes) and False (meaning no). | ||
+ | ===== Automatic Conversions ===== | ||
+ | |||
+ | * **Converted from**: [[Double Type]], [[Int Type]], [[Non Negative Int Type]] and [[Positive Int Type]]: non-zero values are converted to True and zero values are converted to False. | ||
+ | |||
+ | * **Converted to**: [[Double Type]], [[Int Type]], [[Non Negative Int Type]], [[Positive Int Type]] and [[Null Value Type]]: True is converted to one and False to zero. [[String Type]]: True is converted to "true" and False to "false". | ||
===== GUI Editor ===== | ===== GUI Editor ===== | ||
- | The boolean editor uses a check box to represent the current boolean value. | + | [{{ :editors:boolean_editor.png?nolink& |Graphical representation of the boolean editor}}] |
- | A checked box is used to represent the value true and an unchecked box is used to represent a value false. | + | The boolean editor uses a switch marking "Yes" to represent the true value and "No" to represent the value false value. |
===== EGO Script ===== | ===== EGO Script ===== | ||
Line 14: | Line 19: | ||
^ Value ^ Representation ^ | ^ Value ^ Representation ^ | ||
- | | True | .yes, \\ .true | | + | | True | ''.yes'' \\ ''.true'' | |
- | | False | .no, \\ .false | | + | | False | ''.no'' \\ ''.false'' | |
- | + | ||
- | By default, Dinamica EGO writes boolean values using the .yes/.no representation. | + | |
+ | By default, Dinamica EGO writes boolean values using the ''.yes''/''.no'' representation. |