BoolToNumber_v2 Op

BoolToNumber

Switches two number values using a boolean


<p>Per default <code>Value 0</code> will go through to the output port. When <code>Use Value 1</code> is checked / set to <code>true</code>, <code>Value 1</code> will be outputted.</p>


Full Name
  • Ops.Boolean.BoolToNumber_v2
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubTest Patches








No op example found on this server

INPUT PORTS


Use Value 1 (Number:

<i>boolean</i>

)

<p>When <code>false</code> <code>Value 0</code> will be used, <code>Value 1</code> otherwise</p>

Value 0 (Number)

<p>The default value which will be used (when <code>Use Value 1</code> is not set).</p>

Value 1 (Number)

<p>The value to be used (when <code>Use Value 1</code> is checked).</p>

OUTPUT PORTS


Out Value (Number)

<p>Either <code>Value 0</code> or <code>Value 1</code></p>


Patches using BoolToNumber_v2

  • Examples
  • Public
  • My Patches

Changelog


Ops.Value.ValueToggle renamed to Ops.Value.ToggleNumberuser avatarpandur - 2019-11-05 09:01
renameOps.Value.ToggleNumber renamed to Ops.Number.ToggleNumberuser avatarpandur - 2023-12-06 10:04