Skip to main content

mbr_is_cookie

Usage

This shortcode determines the content to be included based upon the existence of the specified $_COOKIE variable and it's optionally specified value.

Parameters

ParametersDescription
varThe name of the $_COOKIE variable for whose existence you are checking.
Default: none.
Required: yes.
valA value to which the $_COOKIE variable will be compared to evaluate to true.
Default: none.
Required: no.

Validity

This shortcode is evaluated for any type of visitor.

Conditional Branching

[ELSE_is_cookie] conditional branching is supported.

Nesting

Shortcode nesting is supported: [mbr_is_cookie1] thru [mbr_is_cookie19]
[ELSE_is_cookie1] thru [ELSE_is_cookie19]
[/mbr_is_cookie1] thru [/mbr_is_cookie19]

Examples

Will display "Test COOKIE is set" if $_COOKIE['test_cookie'] exists:

[mbr_is_cookie name='test_cookie']
Test COOKIE is set
[/mbr_is_cookie]

API

Note

There is no ActiveMember360 API function equivalent for this shortcode. Please use standard PHP functions.