i4w_casetag

Usage:

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.

Parameters:

any_tagidSpecifies a condition where *ANY* matching tag ID’s would be considered a match.
all_tagidSpecifies a condition where *ALL* provided tag ID’s must match to be considered ‘true’.
not_any_tagidSpecifies a condition where not matching *ANY* of the given tag ID’s would evaluate to ‘true’.
not_all_tagidSpecifies a condition where not matching *ALL* of the given tag ID’s would evaluate to ‘true’.
elseSpecifies the default fallback case if no other condition is met.

Example:

[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]

API:

There is no API function equivalent for this shortcode.