Boolean
Represents a true or false value.
- Kotlin Definition:
BooleanDefinition - Kotlin Value:
Boolean - Maryk Yaml Definition:
Boolean
Usage options
Section titled “Usage options”- Value
- Map Key or Value
- Inside List/Set
Validation Options
Section titled “Validation Options”required- default truefinal- default false
Other options
Section titled “Other options”default- the default value to be used if value was not set.
Examples
Section titled “Examples”Example of a Boolean property definition for use within a Model
val isActivated by boolean( index = 1u, required = true, final = false, default = true)Example of a Boolean property definition
val def = BooleanDefinition( required = true, final = false, default = true)Storage and Transport Byte representation
Section titled “Storage and Transport Byte representation”0b0000 for false 0b0001 for true
String representation
Section titled “String representation”true or false