Expression Syntax
All expressions begin with an "@" symbol and an open parenthesis, e.g. @(now() or @(time_from_parts() Once entered, @( will trigger a completion dialogue that lists and explains each function: Syntax elements and variables within expressions are visually distinguished using color highlighting. This makes them easier to identify and helps keep logic clear and organized. !Few readersFunction Reference
You can use expressions in your flows to customize messages and make more complex splits. See our detailed guide on Expressions here and see more about expression syntax here. Syntax and variables within expressions are visually distinguished using color highlighting. This makes them easier to identify and helps keep logic clear and organized. , not-equals (!=), greater-than (>), greater-than-or-equal to (>=), less-than (<) and less-than-or-equal to (<=) operators, e.g. undefined @(contact.age > 18) Note that when comparing text values, the equals ( = ) and not-equals ( != ) operators are case-insensitive.Few readersDate & Time Arithmetic
Use this guide to write date & time arithmetic functions. For example, To add or subtract seconds, minutes, hours, days, months, or years to a given date, use @datetime_add: @(datetime_add("2017-01-15", 5, "D")) adds 5 days@(datetime_add(fields.dob, -3, "M")) subtracts 3 months To create a datetime from a known datetime and a separate hour, e.g. Your next appointment is at @(replace_time(contact.created_on, time("15:00”))) To change the time of datetime value, use the **@(daFew readersLimiting the Number of Incorrect Responses to a Question
You may want to set a limit to the number of times a contact can respond to a specific question in your flow, such as with a quiz or survey. You can do this by using the @node.visit_count expression within a Split by Expression action. In the example below, we've created a very simple quiz. We want the contact to have limited opportunities to answer the question, so we will place the @node.visit_count expression on a 'Split by Expression' node to limit the number of guesses. 