# logic::ASW

    sys::Obj
      sys::Virtual
        sys::Component
          logic::ASW

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

ASW Analog Switch object switches one of two inputs to the output

out = s1 ? in2 : in1

in1

  `public property float in1`

  input 1

in2

  `public property float in2`

  input 2

out

  `public property float out [readonly]`

  output

s1

  `public property bool s1`

  s1 switches in1 or in2 to out

execute

  `public virtual override void execute()`

  Execute is called once every scan.