Text and not text in a string
Jim Ault
JimAultWins at yahoo.com
Sun Sep 21 02:46:51 EDT 2008
Two more ways
... easier readability to use the continuation ¬
character [ option-L on the Mac ]
if ("Internet" is in tString) ¬
and not("Work" is in tString) ¬
and not("Home" is in tString) then
do this
end if
-------------
if ("Internet" is in tString) and ¬
not("Work" is in tString or "Home" is in tString) then
do this
end if
--------------
Jim Ault
Las Vegas
On 9/20/08 8:43 PM, "Ken Ray" <kray at sonsothunder.com> wrote:
>
>
>> How do I ask if the string contains "Internet" but not "Work" or "Home"?
>
> You could also do:
>
> if ("Internet" is in tString) and ("Work" is not in tString) and ("Home"
> is not in tString) then
> -- whatever you want to do
> end if
>
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list