The function select(v,x,y,z) problem
Clexus opened this issue ยท 3 comments
select(v,x,y,z): If v < -1, return x, if v = 0 return y, if v > 0 return z
are you sure it's not "if v <0" but "if v < -1"?
It is "if < 0" - where do you see "< -1", do I have it wrong in the docs somewhere?
if (args[0] < 0) return args[1];
else if (args[0] == 0) return args[2];
return args[3];