• Home
  • Features
  • Pricing
  • Documentation
  • Contact Us
  • Support
Sign In
Client Portal
Expressions

Limiting the Number of Incorrect Responses to a Question

July 22, 2025 niang Comments Off on Limiting 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 […]

Expressions

Date & Time Arithmetic

July 22, 2025 niang Comments Off on Date & 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 […]

Expressions

Logical Comparisons

July 22, 2025 niang Comments Off on Logical Comparisons

A logical comparison is an expression which evaluates to TRUE or FALSE. These may use the equals (=), 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 […]

Expressions

Function Reference

July 22, 2025 niang Comments Off on Function 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. If you have any questions, send us a message via the support widget in the bottom right corner.

Expressions

Expression Syntax

July 22, 2025 niang Comments Off on 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: Simple Syntax This is used to embed single values, e.g. Hi @contact, you entered @results.age for age. Is this correct?   An expression can also be a function call, e.g. Hello @(upper(contact.first_name)) […]

Search

Categories

  • Articles 2
  • Campaigns 11
  • Channels 20
  • Contacts 26
  • Expressions 5
  • FAQ 14
  • Flows 55
  • Getting Started 12
  • Groups 7
  • Messages 15
  • Success Stories 2
  • Tickets 5
  • Tips and Tricks 1
  • Triggers 11
  • Troubleshooting 8
  • Voice IVR 9
  • Zapier 3

Recent posts

  • Health workers in use RapidPro Gambia to collect real-time data on COVID-19 and essential services.
    RapidPro Gambia: Strengthening COVID‑19 Response with SMS Data
  • Nurse in Sierra Leone using mobile phone to report drug availability via RapidPro Sierra Leone SMS tracking system
    How RapidPro Sierra Leone Tracked Free Health Supplies with SMS Precision
  • Bringing your SMS contacts over to Telegram

Want to receive news and updates?


    Boost your messaging with expert RapidPro setup and support.

    Features
    • RapidPro Hosting
    • Provisionning
    • Maintenance
    • Migration
    Resources
    • Support center
    • Documentation
    • Community Forums
    • Developer API
    Company
    • About us
    • Latest news
    • Success Stories
    • Careers
    Social
    • LinkedIn
    • Facebook
    • Twitter
    • Youtube
    © RapidPro.app 2025. Designed by Cocoon. All rights reserved.​
    • Terms & Conditions
    • Privacy Policy