Usage:
This shortcode is used to retrieve the value held in a client-side cookie and compare it with a given value. The cookie will have to have been previously set either programmatically through your own script or through the [i4w_cookie_set] shortcode.
[ELSE_ifcookiex] conditional branching is supported.
Shortcode nesting is supported:
[i4w_ifcookiex1] thru [i4w_ifcookiex19]
[ELSE_ifcookiex1] thru [ELSE_ifcookiex19]
Parameters:
var | The cookie that you wish to display in place of the shortocde. Default: none. Required: yes. |
Example:
[i4w_ifcookie var=’myVAR’ value=’12345’] display this content [ELSE_ifcookie] display this other content [/i4w_ifcookie]
API:
There is no API function equivalent for this shortcode.