QUOTE (royalbox @ Feb 3 2009, 01:28 AM)

As the title says, how do you do multiple else, if commands?
I've tried:
CODE
If,%pRadioGroup1%,Equal,0,Begin
Message,0,INFORMATION
Else,If,%pRadioGroup1%,Equal,1,Message,1,INFORMATION
Else,If,%pRadioGroup1%,Equal,2,Message,2,INFORMATION
Else,If,%pRadioGroup1%,Equal,3,Message,3,INFORMATION
Else,If,%pRadioGroup1%,Equal,4,Message,4,INFORMATION
End
But only the first option is executed.
I thank thee.
Only 'If' is a statement, Else is none.
Syntax: If,<Condition>,<statement>[<newline>Else,<statement>]
<statement> cab be a Begin - End block
CODE
If,%pRadioGroup1%,Equal,0,Begin
Message,0,INFORMATION
End
Else,Begin
If,%pRadioGroup1%,Equal,1,Message,1,INFORMATION
End
Else,Begin
If,%pRadioGroup1%,Equal,2,Message,2,INFORMATION
End
Else,Begin
If,%pRadioGroup1%,Equal,3,Message,3,INFORMATION
End
Else,Begin
If,%pRadioGroup1%,Equal,4,Message,4,INFORMATION
End
But in this case it would bea easier to use:
So your code should look like:
CODE
If,%pRadioGroup1%,Equal,0,Message,0,INFORMATION
If,%pRadioGroup1%,Equal,1,Message,1,INFORMATION
If,%pRadioGroup1%,Equal,2,Message,2,INFORMATION
If,%pRadioGroup1%,Equal,3,Message,3,INFORMATION
If,%pRadioGroup1%,Equal,4,Message,4,INFORMATION
That is not measurable slower.
Peter