conditionals in a scripting language?

BlitzPlus Forums/BlitzPlus Programming/conditionals in a scripting language?

neos300(Posted 2009) [#1]
I got a form of conditionals in my scripting language working, but i am confused on how to make a block of code work if that if statement is working. Can anyone tell me how to do that?

code:
Case "if"
secspace=Instr(params$," ",1)
vare$ = Left(params$,secspace-1)
rest1$ = Mid$(params$,secspace+1)
thirdspace=Instr(rest1$," ",1)
sign$ = Left(rest1$,thirdspace-1)
valuee$ = Mid$(rest1$,thirdspace+1)
var = GetEnv(vare$)
num = stringtonumber(valuee$, 1)
Select sign$
Case "=="
If var = num
EndIf
Case ">="
If var > num
EndIf
Case "<="
If var < num
EndIf
Case "!="
If Not var = num
EndIf 
Case "<>="
If var <> num
EndIf 
Default
echo("Sign unrecognized")
End Select


Please give me a straight answer, and don't tell me that i should stop interpreting plain text!


neos300(Posted 2009) [#2]
Bump