condition( flagArray, trueValue, falseValue )This has the same effect as applying the expression
outArray[i] = flagArray[i] ? trueValue : falseValue.
flagArray (array of boolean)trueValue (floating point)falseValue (floating point)flagArraycondition([true, false, true], 1, 0) = [1, 0, 1]double[] condition(boolean[], double, double)