Well I guess your code looks like this:
&AAA=0
if (string.scan(string.lwr("¶meters"),"AAA",0)!=-1)
(
&AAA=1
)
Note: The round brackets for opening and closing a block in a PRACTICE script must be placed in separate lines.
About the meaning: Your script has two "variables" (aka. "macro"): ¶meters
and &AAA
.
- In the first line you initialize
&AAA
with 0.
- In the second line you use string.lwr() to get the content of the variable
¶meters
converted to lower-case.
- Then you search in this lower-case string for a string "AAA" (which is ironically upper case) beginning from the first letter (with string.scan()).
- The result of string.scan() is -1 if the string "AAA" wasn't part of the lower-case version of
¶meters
- So variable
&AAA
gets set to 1, if a lower-case version of ¶meters
contain the string "AAA" (which is never the case since "AAA" is upper-case).
Maybe the writer of the script wanted to use string.upr() instead of string.lwr().