Is there a select/case statement or similar, without having to do a long and complex if else statement?
Andrew
Select/case?
Re: Select/case?
As far I know there is not, but once I found a post with a work-around for that:
Also, if it's something simple - perhaps array/object would do.
Code: Select all
TMP := 2
If !IsLabel("Case-" TMP)
{
;...
}
Else
{
Loop 1
{
GoTo Case-%TMP%
Case-1:
;...
Break
Case-2:
;...
Break
Case-3:
;...
Break
}
}
Use
Code: Select all
[/c] forum tag to share your code.
Click on [b]✔[/b] ([b][i]Accept this answer[/i][/b]) on top-right part of the post if it has answered your question / solved your problem.
Who is online
Users browsing this forum: Aqualest and 335 guests