Can't do the math
Bill Vlahos
bvlahos at jpl.nasa.gov
Fri Mar 1 17:02:01 EST 2002
Using Rev 1.1.1B1 on Mac OS X the if statement below doesn't work
correctly.
Here is the variable varAllGroups:
root::0:root
other::1:
bin::2:root,bin,daemon
sys::3:root,bin,sys,adm
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
"allgroups"
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