Type: Boolean

From Waltz
Revision as of 18:39, 5 February 2019 by Patrick Angle (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Boolean type represents a value with only two possible states; true and false. In programming, booleans are often used to represent something being turned on or off, something being true, or a yes/no situation.

Constructing

There is no need to explicitly construct a Boolean, nor is there an explicit constructor. Assigning either true or false to a field or variable will set the state correctly.

Permitted Values

The Boolean type only allows two different values; true or false. Any other value will either be evaluated as false when working with booleans, or will be non-resolvable.

Primitive Bridging

The Boolean type exists both in Waltz's native context as well as in its Script Expressions. The values are inter-compatible with no need for bridging to convert the value.

Types
Primitives Boolean · Number · String
Objects Color · Dimension · DmxMultiverse · DmxUniverse · LocalInterface · Material · Point · RemoteAddress/IP · Scene · Time · Touch
Node Specific NdiSource · WoControlCue · WoHitTestResult · WoTimeline
Collections List · List of Lists · Map · Varargs
Special Any · Consumer · Expression · Null · Void