Documentation >> Conditionals >> Cookies >> cookie.[name].exists
Cookie Conditional Macro: cookie.[name].exists
Operators:
Usage Notes
- Tests for the existence of a cookie in the current HTTP request.
- Substitute the actual name of a cookie for the [name] (no brackets) portion of the macro.
- Use this conditional before testing other properties of the cookie.
Example
This example will show the first line if the cookie exists, and the second line if it does not.
<!--#if condition="cookie.wysiwygEditor.exists"-->
1. You have specified whether or not you want to use the WYSIWYG message editor in the discussion forum.
<!--#else-->
2. You have not specified whether or not you want to use the WYSIWYG message editor in the discussion forum.
<!--#endif-->
Here is the above code in action:
2. You have not specified whether or not you want to use the WYSIWYG message editor in the discussion forum.
View in DG
|