Can't do the math

Bill Vlahos bvlahos at
Fri Mar 1 17:02:01 EST 2002

Using Rev 1.1.1B1 on Mac OS X the if statement below doesn't work 
Here is the variable varAllGroups:


Here is the script:

   replace ":" with space in varAllGroups --to make words for parsing
   repeat with x = 1 to the number of lines in varAllGroups
     if word 3 of line x of varAllGroups > 100 then
       put first word of line x of varAllGroups & return after field 
     end if
   end repeat

The if statement doesn't do the math correctly. The lines 1, 3, and 4 
evaluate to true when they shouldn't.

Bill Vlahos

More information about the use-livecode mailing list