boolean
Converts a value to a true or false value.
Target
Signature
1boolean(obj::any)Converts a value to a true or false value.
boolean constructs or identifies a LaiRu value type. boolean belongs to the object model. Use type constraints to document the value you expect and member syntax when behavior naturally belongs to an object.
Parameters
obj- Required value of type
any. Supplyobjpositionally unless the signature shows a keyword form.
Examples
Basic call
1boolean('true')The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.