Now that you've made your code work, you can consider making it shorter and faster.
LiveCode supports the syntax: put <boolean expression> into <container> For example, put gUSL <= pos_vrange and gUSL >= neg_vrange into Tester[x]["rng_check"] -- Dick On Jun 6, 2011, at 12:37 AM, Van Brollini wrote: > 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 <dixo...@hotmail.co.uk> > To: <use-livecode@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@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 ----- > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode