i4w_ifcookiex
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] and [ELSE_ifcookiex1] thru [ELSE_ifcookiex19]
Parameters
| Parameter | Description | Default | Required |
|---|---|---|---|
| var | The cookie that you wish to compare. | None | Yes |
| value | The value to compare against. | None | Yes |
Example
Shortcode
[i4w_ifcookiex var='myVAR' value='12345']
display this content
[ELSE_ifcookiex]
display this other content
[/i4w_ifcookiex]