Usage:

This shortcode is designed to check for the existence of a $_COOKIE variable and, given a value to check, for a value match. Any content embedded between the tags will be displayed if the criteria is met.

[ELSE_is_cookie] conditional branching is supported.
Shortcode nesting is supported:
[mbr_is_cookie1] thru [mbr_is_cookie19]
[ELSE_is_cookie1] thru [ELSE_is_cookie19]

Parameters:

var The name of the $_COOKIE for whose existence you are checking.
Default: none.
Required: yes.
val A value which the $_COOKIE variable must hold in order for the shortcode to evaluate to true.
Default: none.
Required: no.

Example:

Will display “Test COOKIE is set” if $_COOKIE[‘test_cookie’] exists.

[mbr_is_cookie var='test_cookie']
  Test COOKIE is set
[ELSE_is_cookie]
  Test COOKIE is NOT set
[/mbr_is_cookie]

Will display “Test COOKIE is set” if $_COOKIE[‘test_cookie’] exists AND its value is 123.

[mbr_is_cookie var='test_cookie' val='123']
  Test COOKIE is set to 123
[ELSE_is_cookie]
  Test COOKIE is NOT set to 123
[/mbr_is_cookie]

API:

There is currently no ActiveMember360 API function equivalent for this shortcode.