Usage:
This shortcode is designed to check for the existence of a $_GET 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_http_get] conditional branching is supported.
Shortcode nesting is supported:
[mbr_is_http_get1] thru [mbr_is_http_get19]
[ELSE_is_http_get1] thru [ELSE_is_http_get19]
Parameters:
var | The name of the $_GET variable for whose existence you are checking. Default: none. Required: yes. |
val | A value which the $_GET variable must hold in order for the shortcode to evaluate to true. Default: none. Required: no. |
Example:
Will display “Test GET is set” if $_GET[‘test_get’] exists.
[mbr_is_http_get var='test_get'] Test GET is set [ELSE_is_http_get] Test GET is NOT set [/mbr_is_http_get]
Will display “Test GET is set” if $_GET[‘test_get’] exists AND its value is 123.
[mbr_is_http_get var='test_get' val='123'] Test GET is set to 123 [ELSE_is_http_get] Test GET is NOT set to 123 [/mbr_is_http_get]
API:
There is currently no ActiveMember360 API function equivalent for this shortcode.