if (x>0) and (x<wwidth-1) and (y>0) and (y<height-1) then
perform_action()
end if
// is this correct?. if it is then something else is a foot, should be about 12 inches ;)
if (x>0)
if (x<wwidth-1)
if (y>0)
if (y<height-1)
perform_action();
if (x>0)
{
if (x<wwidth-1)
{
if (y>0)
{
if (y<height-1)
{
perform_action();
}
}
}
}
if (x>0) and (x<wwidth-1) and (y>0) and (y<height-1) then
perform_action()
end if
is equivalent toif (x>0 && x<wwidth-1 && y>0 && y<height-1)
{
perform_action();
}
Doing it in 4 separate ifs is exactly the same.if (a && b)
Then if 'a' is false it won't evaluate 'b' at all.if (a)
{ if (b)
{...
}
}
Code: [Select] bool test1(int a, int b, int c)Code: [Select] 00401000 xor eax,eax | Code: [Select] bool test2(int a, int b, int c)Code: [Select] 0040101A xor eax,eax |