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

BoolToNumber Op

BoolToNumber

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.


Edit Documentation

Full Name
  • Ops.Boolean.BoolToNumber
Visibility
  • Core Op - Official cables op
Author


 

INPUT PORTS


bool (Number:boolean )

The boolean value to convert

OUTPUT PORTS


number (Number)

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


Usages of BoolToNumber

  • Examples
  • Public
  • My Patches
  • Ops