Board Thread:Support Requests - Getting Technical/@comment-33878615-20160730010321/@comment-9605025-20160730194843

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", then inputs other than "yes" and "no" will result in a blank box. Also, I don't think the vertical bar is needed since the default tag takes care of the case where "status" it not provided at all.