>I am comparing Multiple lists with one list with the OR statement.
>if (gListStorage OR gListStorage1) = gFrameClips then
Here's your problem. You're doing a boolean OR of gListStorage and
gListStorage1, then comparing that with gFrameClips.
It should work if you do it like this:
if (gListStorage = gFrameClips) OR (gListStorage1 = gFrameClips)
Booleans can be tricky. It might be easier to understand if we start with
binary numbers and bitwise boolean operators:
0010 OR 0001 = 0011
In most languages, boolean operators are first in the order of precedence.
Plus, you've added parentheses to further enforce that order.
With our binary example, consider the following two statements:
if (0010 OR 0001) = 0001
will evaluate to false because the expression within the parentheses is
evaluated first. So, what actually happens is:
1. (0010 OR 0001) evaluates to 0011
2. 0011 = 0001 evaluates to false.
On the other hand, rearranging the parentheses:
if (0010 = 0001) OR (0001 = 0001)
if (0010 = 0001) evaluates to FALSE, but
(0001 = 0001) evaluates to TRUE
so your OR comparison works.
HTH. Maybe I've done too much assembly language programming.
Cordially,
Kerry Thompson
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]