I would like to know how to read this code and what the outcome would be. its writtin in a calculation function block which typically includes IF-THEN-ELSE, DO-WHILE, etc. statements.
out1 := (in2 = 0) ? 0 : ((in1 & in3) > 0);
of course in1/2/3 are the inputs, out1 is the output. Is this a type of IF-THEN-ELSE short-hand?
October 15, 2011 12:07 AM
October 17, 2011 8:08 PM