Should I make this simple snippet without calling any chunks that will handle youtube videos in my case,
the page by placing the call to the snippet, it looks like this
[[Snippet? if member A output ="htmlcode1" if member B output ="htmlcode2" else output member not registered output="htmlcode3"}]]
Many thanks to those who bring forward the discussion
Parameters
&get = input parameter
&c1, &c2, &c3 .... case 1, case 2, case 3,....
&do1, &do2, &do3 = output parameter for matching case
you can use unlimited input parameters c1 c2 c3 ... each c# must have output d#
&default (optional) = default value if no matching case found
Usage:
[[!switch? &get=`3` &c1=`1` &do1=`one` &c2=`2` &do2=`two` &c3=`3` &do3=`three` &c4=`4` &do4=`four` &default=`default value` ]]
raturns: three
[[!switch?
&get=`xxx`
&c1=`1` &do1=`one`
&c2=`2` &do2=`two`
&c3=`3` &do3=`three`
&c4=`4` &do4=`four`
&default=`default value`
]]
raturns: default value