# control::BSW

    sys::Obj
      sys::Virtual
        sys::Component
          control::BSW

`public class BSW` `[niagaraIcon="module://icons/x16/control/util/switch.png"]`

BSW: Boolean Switch object

if s1 is null output is null if (s1) out = in2 else out = in1

in1

  `public property bool in1`

  boolean input 1

in2

  `public property bool in2`

  boolean input 2

out

  `public property bool out [readonly]`

  boolean output

s1

  `public property bool s1`

  if s1 is null output is null if (s1) out = in2 else out = in1

execute

  `public virtual override void execute()`

  Execute is called once every scan.