Board Thread:Support Requests - Getting Technical/@comment-5596770-20140127161620

I recently wanted to do template detection inside of a switch statement, but I haven't been able to determine the correct syntax, since switch appears to be entirely string based.

The concept is that I have a template wrapper with a paramater that could be one of multiple different templates, and I want to determine which one was used.

Usage:

Code syntax:

The above code will actually work, however the problem is that and  have numeric arguments, so it's more like  or. That's where my problem lies, because I don't know the syntax for a generic numeric comparison, and I'm guessing that there may actually not be one. That would mean that I would have to account for every possible value in the string comparison for the switch statement, which is defeats the purpose of the exercise.

I might be able to do this in two or more steps, but I still need a generic way of detecting whether or  was used. Any suggestions?  