beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
BoolToNumber
Ops.Boolean.BoolToNumber
Namespace: Ops.Boolean
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


Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

Credits


Examples using BoolToNumber

Public Patches using BoolToNumber