I want to implement switch case statement in Template toolkit. My code is as follows:
[% SWITCH myvar %]
[% CASE > 4 %]
Value is amplified
[% CASE < 1%]
Value is Deleted
[% CASE %]
Normal Value
[%END%]
I am getting a error message saying '<' and '>' are unexpected tokens in my script. Can Any one help me resolve this issue. I preferably dont want to use IF statements as it is reducing the speed of execution of my script. Is there any other alternative for the above.
Thanks in advance...