Board Thread:Support Requests - Getting Technical/@comment-33878615-20160730010321/@comment-25024589-20160730195127

Andrewds1021 wrote: reply to #4

Yes, you can do that, or you can just use magic words to format the input. Note that I changed the switch statement a bit. With this modification, "yes", "Yes", "yEs", and the like will all be treated as "yes" as far as "#switch" is concerned. If you want to allow only "yes" and "Yes", then use "lcfirst" instead of "lc". Note also that I changed the second condition. This allows all input that doesn't match "yes" to be displayed as "Alive". If you leave the second condition as "no=Alive", than inputs other than "yes" and "no" will result in a blank box. Also, I don't think "|" is needed since the default tag takes care of the case where "status" it not provided at all. Ah, okay. Thanks for the clarification!