Here is the value in my global variable that is giving me a false true value:
"scale>"
The string that is compared to this value that returns an incorrect "true" match is this:
"scale_compensation true"
If I try this with a direct string comparison it works correctly:
Code: Select all
If "scale_compensation true" contains "scale>" then
put true into message
else
put false into message
end if
But if the same match is done via a loop through a list of words then it returns a TRUE when it hits that "scale_compensation true" string value.
the global variable gTransforms contains:
Code: Select all
--Global gTransforms--
translation>
scale>
rotation_x>
rotation_y>
rotation_z>
flip_h>
flip_v>
shear>
"scale_compensation true"
to the function below:
Code: Select all
function ReversTransforms theText
repeat for each line j in gTransforms
if theText contains j then
put true into returnVal
exit repeat
else
put false into returnVal
end if
end repeat
return returnVal
end ReversTransforms