Logic Operators perform comparisons and checks that are either true or false. They can be used in areas that support Liquid syntax comparisons and checks, such as Render Conditions.
Requirements:
- An active ClickFunnels 2.0 account
TABLE OF CONTENTS
Basic Operators:
When thinking about operators, you are usually making some comparisons. These are the basic operators supported.
== | Checks if two things are equal |
!= | Checks if two things are not equal |
> | Checks if the thing on the left of the symbol is greater than the thing on the right |
< | Checks if the thing on the left of the symbol is less than the thing on the right |
>= | Checks if the thing on the left of the symbol is greater than or equal to the thing on the right |
<= | Checks if the thing on the left of the symbol is less than or equal to the thing on the right |
or | Logical “or” lets you string together comparisons. It checks if at least one of the comparisons returns true. |
and | Logical “and” lets you string together comparisons. It checks if both of the comparisons return true. |
Examples:
1 == 2 | returns false |
1 != 2 | returns true |
1 == 2 or 2 < 3 | returns true |
1 == 2 and 2 < 3 | returns false |
1 < 2 and 2 < 3 | returns true |
The “contains” Operator:
The “contains” operator checks for a substring in a string, or it checks for a string in an array of strings.
Examples:
”ClickFunnels” contains “Funnels” | returns true |
Order of Operations:
Operators are checked from right to left when more than one “and” or “or” operator is used. You cannot change the order of operations using parentheses; parentheses are invalid characters in Liquid Templating and will prevent them from working.
Examples:
true or false and false | returns true |
Additional Information:
- Liquid Templating: Objects (article coming soon)
- Element Settings: Render Conditions
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article