×

Liquid Templating: Operators

Modified on Wed, 22 Nov, 2023 at 12:26 PM

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
orLogical “or” lets you string together comparisons. It checks if at least one of the comparisons returns true.
andLogical “and” lets you string together comparisons. It checks if both of the comparisons return true.

Examples:

1 == 2returns false
1 != 2returns true
1 == 2 or 2 < 3returns true
1 == 2 and 2 < 3returns false
1 < 2 and 2 < 3returns true

Back to Top


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

Back to Top


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 falsereturns true

Back to Top


Additional Information:

Back to Top

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article