# control::Sub2

    sys::Obj
      sys::Virtual
        sys::Component
          control::Sub2

`public class Sub2` `[niagaraIcon="module://icons/x16/control/math/subtract.png"]`

Sub2 Two Input Subtract object

out = in1 - in2

in1

  `public property float in1`

  in1

in2

  `public property float in2`

  in2

out

  `public property float out [readonly]`

  result o subracting in1 - in2

execute

  `public virtual override void execute()`

  Execute is called once every scan.