With this shortcode, a tag-based decision construct similar to CASE..SELECT..ELSE can be applied.
This shortcode can be used instead of using a series of [i4w_onlyfor] shortcodes, making your code both shorter and easier to manage.
[ELSE_casetag] conditional branching is supported.
Shortcode nesting is NOT supported.
|any_tagid||Specifies a condition where *ANY* matching tag ID’s would be considered a match.|
|all_tagid||Specifies a condition where *ALL* provided tag ID’s must match to be considered ‘true’.|
|not_any_tagid||Specifies a condition where not matching *ANY* of the given tag ID’s would evaluate to ‘true’.|
|not_all_tagid||Specifies a condition where not matching *ALL* of the given tag ID’s would evaluate to ‘true’.|
|else||Specifies the default fallback case if no other condition is met.|
[i4w_casetag] any_tagid:987,432 You have at least one of the given tag ID’s. not_any_tagid:123,234 You do not have at least one of the given tag ID’s. all_tagid:678,321, You have all the given tag ID’s. not_all_tagid:345,456 You do not have all the given tag ID’s. else: None of the above applied to you. [/i4w_casetag]
There is no API function equivalent for this shortcode.