>IF ABright = 1 AND someothervariable THEN
>it would have to be coded something like this:
>if (((ABright == 1) * -1) & someothervariable)
if ((ABright == 1) && someothervariable)
should produce the same result. The value of the expression will be different, but the IF statement will behave correctly. Multiplying the result of comparisons by -1 (or doing something with the same result) would be necessary in some cases, though.