Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If statements
#2
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)