Reputation: 13
Hello Stackoverflow community,
i whonder if there is an less ressource using way to select an action based on a variables value than having multiple if-clauses. I think there was something like
select $variable
case value1 {some code}
case value2 {other code}
but is it more lightweight than several if clauses ?
Thanks in advance, spechter
Upvotes: 0
Views: 28