min(x,y,z)

(x<y) ? ((x < z) ? x : z) : ((y < z) ? y : z) ;

i hope this works....

the same way you can write to max(x,y,z,w)

(x<y) ? ((x < z) ? x : z) : ((y < z) ? y : z) ;

i hope this works....

the same way you can write to max(x,y,z,w)