Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
boolean_value_type [2013/08/06 23:10]
admin [Bool Type]
boolean_value_type [2015/10/11 23:01]
admin ↷ Page name changed from bool_type to boolean_value_type
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).
  
-Any numeric value can be automatically converted to a [[wp>​Boolean_value|boolean]] value. Non-zero values are converted to True and zero values are converted to False. 
- 
-Booleans can also be automatically converted to any numeric types (([[Double Type]], [[Int Type]], [[Non Negative Int Type]] and [[Positive Int Type]]). True is converted to one and False to zero. 
 ===== GUI Editor ===== ===== GUI Editor =====
  
Line 21: Line 18:
  
 By default, Dinamica EGO writes boolean values using the ''​.yes''/''​.no''​ representation. By default, Dinamica EGO writes boolean values using the ''​.yes''/''​.no''​ representation.
 +
 +===== 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"​. ​