and or?
Stephen Barncard
stephenREVOLUTION2 at barncard.com
Thu Feb 14 16:40:06 EST 2008
not sure what you mean by AND OR
you can multiple booleans in series
if (len(fld 2) > 5) OR (len(fld 4) > 5) OR (len(fld 6) > 5)
then
do something
end if
or
if (len(fld 2) > 5) AND (len(fld 4) > 5) AND (len(fld 6) > 5)
then
do something
end if
or
if (a>b) and a>c) OR (d>b) and d>c)
then
do something
end if
>Hi Everyone
>
>Is there a way to do an "and/or" in an if/then statement?
>In other words can I get something like this statement to work
>
>if len(fld 2) > 5 and or len(fld 4) > 5 then
> do something
>end if
>
>Thanks for your continuing support. I don't know how I'd manage without this
>group sometimes.
>
>Joe in Orlando
>
--
stephen barncard
s a n f r a n c i s c o
- - - - - - - - - - - -
More information about the use-livecode
mailing list