Board Thread:Support Requests - Getting Technical/@comment-4387463-20130621013814/@comment-1158325-20130623003004

Sounds like you might want a #switch. You can find information on that and more useful functions here.

I'd think it would be pretty difficult to control the code people enter, though with visual editor it might be easier.