# control::Add2

    sys::Obj
      sys::Virtual
        sys::Component
          control::Add2

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

Add2 adds two float inputs and writes the results to a float output

out = in1 + in2

in1

  `public property float in1`

  input 1

in2

  `public property float in2`

  input 2

out

  `public property float out [readonly]`

  out is the sum of all inputs

execute

  `public virtual override void execute()`

  Execute is called once every scan.