Logical Expressions
Van Brollini
analog_test at runbox.com
Mon Jun 6 03:37:04 EDT 2011
stupid mistake. was not referencing cell. pos_range should be tTester[x]["pos_range"]
works right now.
thanks.
----- Start Original Message -----
Sent: Mon, 6 Jun 2011 08:21:18 +0100
From: John Dixon <dixonja at hotmail.co.uk>
To: <use-livecode at lists.runrev.com>
Subject: RE: Logical Expressions
>
>
> Does this work for you... shedding the outer brackets ?
> if (gUSL <= pos_vrange) AND (gUSL >= neg_vrange) then
>
>
>
> > What is the best way to do multiple logical comparisons and get them to work?
> >
> > For example
> >
> > if ((gUSL <= pos_vrange) AND (gUSL >= neg_vrange)) then
> > get TRUE
> > put it into tTester[x]["rng_check"]
> > else
> > get FALSE
> > put it into tTester[x]["rng_check"]
> > end if
> >
> > This does NOT work, while below does work. I need to get the top one to work
> >
> > if ((gUSL <= pos_vrange) ) then
> > get TRUE
> > put it into tTester[x]["rng_check"]
> > else
> > get FALSE
> > put it into tTester[x]["rng_check"]
> > end if
> >
> > Thanks in advance,
> > Van
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
----- End Original Message -----
More information about the use-livecode
mailing list