eXecute command is sensible to variable scoping
in addition control of allowed operates is required.
this small method gives you an easy to maintain code.
goto $case(op
,"<":lt
,">":gt
,"=":eq
,"<>":ne
,:fail
)
fail quit 0
lt quit var1 < var2
gt quit var1 > var2
eq quit var1 = var2
ne quit (var1 '= var2)
}
.
and you are free to use any naming of your operator you allow ( & , $ , @, GOOFY, DAISY, DUFFY, DONALD, .. )
- Log in to post comments
