what if some of the <,> equations were false?
How would do it so it only returned the number of the right/true equation?
This is taken from the 5 equations of my sniper_v_1.3 which I posted on the cybug library.
> > Would this piece of code work?
> > cmath v0=(((v4 < v3)*0+2)or((v5 < v3)*0+4))or (((v6 < v3)*0+3)or((v7 < v3)*0+4))
> > If not why and how would it need to be changed in order to work?
> coz on the right hand side of the assignment operator(=) you gotta reference user variables with a tilde sign(~)
> cmath v0 = (((~v4 < ~v3)*0+2)OR((~v5 < ~v3)*0+4))OR(((~v6 < ~v3)*0+3)OR((~v7 < ~v3)*0+4))
> however this equation seems to be rather ineffectual because with those zeroes it really is
> cmath v0 = (0+2)OR(0+4)OR(0+3)OR(0+4)
> = 2 OR 4 OR 3 OR 4
> = ALWAYS TRUE