beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
Ops.Boolean.BoolToNumber

BoolToNumber
op id:2591c495-fceb-4f6e-937f-11b190c72ee5
Outputs `0` for `false` and `1` for `true` (converter, boolean)

summary (oneliner)

Useful if you need to convert a boolean value (true or false) to a number (0 or 1). This can be useful if an op only accepts a number, but you want to feed in a boolean value.

doc

issues

youtube id

collections

related ops

Inputs

bool (boolean Number)

The boolean value to convert


Outputs

number (Number)

The converted boolean value as a number, either 0 or 1


Credits

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using BoolToNumber

Public Patches using BoolToNumber