I realized later....

by Michael Calkins (Login MCalkins)
ASM Forum


>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.


Posted on Jan 4, 2008, 5:46 PM

Respond to this message   

Return to Index

 Copyright © 1999-2018 Network54. All rights reserved.   Terms of Use   Privacy Statement