Posts: 97
Threads: 25
Joined: Jan 2013
Hey!
I'm having a little trouble finding the correct syntax:
Function
enumeracao_alpha
function str'letra
if letra="a"
,ret 1
Without using "else if" I want the code to say to return 1 if it's "a" OR "A". But I find the correct way to use or (||).
Can you help? Thanks!
Posts: 12,090
Threads: 142
Joined: Dec 2002
if letra="a" || letra="A"
,ret 1
or
if letra~"a"
,ret 1
or
if 0=StrCompare(letra "a" 1)
,ret 1
or
sel letra
,case ["A","a"] ret 1
or
sel letra 1
,case "a" ret 1
Posts: 97
Threads: 25
Joined: Jan 2013