NPR puzzle
Ken Norris
pixelbird at interisland.net
Thu Jul 21 23:55:40 EDT 2005
Hello Dick,
> Date: Thu, 21 Jul 2005 14:19:37 -0700
> From: Dick Kriesel <dick.kriesel at mail.com>
> Subject: Re: NPR puzzle
Question:
>
> repeat for each word tWord in field 1
> if tSymbolArray[char 1 to 2 of tWord] then
> if tSymbolArray[char 3 to 4 of tWord] then
> if tSymbolArray[char 5 to 6 of tWord] then
> if tSymbolArray[char 7 to 8 of tWord] then
> if tSymbolArray[char 9 to 10 of tWord] then
> put tWord & return after tHits
> end if
> end if
> end if
> end if
> end if
> end repeat
If you want speed, can you replace this with a switch/case structure?
All the best,
Ken N.
More information about the use-livecode
mailing list