07-15-2010, 04:55 PM
When need to compare a variable with several constant values (in this case "F" and "M"), better use sel.
sel s1
,case "F"
,act child(1)
,key V
,case "M"
,act child(2)
,key V
With IF it would be
if s1="F"
,act child(1)
,key V
else if s1="M"
,act child(2)
,key V
If does not work, before insert
s1.trim
, because sometimes cell text may end with space or newline.
sel s1
,case "F"
,act child(1)
,key V
,case "M"
,act child(2)
,key V
With IF it would be
if s1="F"
,act child(1)
,key V
else if s1="M"
,act child(2)
,key V
If does not work, before insert
s1.trim
, because sometimes cell text may end with space or newline.
