Board Thread:General Discussion/@comment-25090105-20150905023527/@comment-24473195-20150905100401

UltimateSupreme wrote:

Dessamator wrote: I think that perhaps you misunderstood. It will process and expand all templates until it finds its match.

For example:

Using the statement above, "stub, delete and cleanup" are all expanded as it looks for the "right" parameter. It will exclude speedydelete because it found its match. No, all names (not values) till the match is found are expanded. So in a switch like: , and  are expanded (while,  and  are not) You're right. I must have mixed things up. The problem with the switch function that I meant to highlight is that despite its name, it works like a loop. If one of them has 1000 statements, and the one it needs is 1000, it will evaluate all of them despite the fact that it is a very inefficient way of doing it.

But then again it may apply to many programming languages, the difference being that those languages can do it much more quickly.