/ src / hal / components / mux2.comp
mux2.comp
 1  component mux2 "Select from one of two input values";
 2  pin in bit sel;
 3  pin out float out "Follows the value of in0 if sel is FALSE, or in1 if sel is TRUE";
 4  pin in float in1;
 5  pin in float in0;
 6  function _;
 7  license "GPL";
 8  ;;
 9  FUNCTION(_) {
10      if(sel) out = in1;
11      else out = in0;
12  }