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
License
  • MIT
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


Patches using BoolToNumber

  • Examples
  • Public
  • My Patches