Variable = (Captor > Threshold) ? ValueIfTrue : ValueIfFalse;