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

BoolToNumber Op



BoolToNumber
Namespace: Ops.Boolean

Op author: pandur

Outputs `0` for `false` and `1` for `true` (converter, boolean)


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.



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 Documentation 

Patches using BoolToNumber

  • Examples (1)
  • Public
  • My Patches