Skip to main content

i4w_isset

Usage

This shortcode provides a means to determine if a parameter was passed to a custom shortcode and execute the appropriate conditional branch.

[ELSE_isset] conditional branching is supported.

Shortcode nesting is NOT supported.

Parameters

ParameterDescriptionDefaultRequired
varThe name of the parameter whose existence is being determined.NoneYes

Example

Shortcode
[i4w_isset var='varname']
Display this if the parameter named 'varname' was passed to the custom shortcode
[ELSE_isset]
Display this if the parameter named 'varname' was NOT passed to the custom shortcode
[/i4w_isset]