I just had this situation: If 1=2 or 1=1 then Some code would NOT execute here***wrong**** End if
BUT.... If ( (1=2) or (1=1) ) then Some code would execute here****Correct***** End if OR If ( 1=2 or 1=1 ) then Some code would execute here****Correct***** End if I just use parens all over the place now. Ralph DiMola IT Director Evergreen Information Services [email protected] -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Bob Sneidar Sent: Thursday, February 16, 2012 12:09 PM To: How to use LiveCode Subject: Re: Question about operators I have tried that to as a kind of between function. It doesn't work. It will evaluate one part which will return true or false, then the next part which essentially says true <= 8 which of course is false. Bob On Feb 16, 2012, at 7:49 AM, Timothy Bleiler wrote: > Hi, > If I type Put 1<=1 AND 1<=8 into the message box I get true, but if > If I type Put 1<=1<=8 into the message box I get false. > > Am I missing something or is the second form not allowed? > > Thanks, > Tim Bleiler > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
