wangpeipei90 / expressions

Expression parsing and evaluation support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RapidPro Expressions

RapidPro messages and flows can contain expressions which are evaluated at runtime. These come in two flavors: simple and advanced.

Simple Syntax

This is used to embed single values, e.g.

Hi @contact, you entered @flow.age for age. Is this correct?

Advanced Syntax

This is used to build more complex expressions using similar syntax to Excel formulae, e.g.

Hi @(PROPER(contact)), you are @(YEAR(NOW()) - flow.year_born) years old. Is this correct?

About

Expression parsing and evaluation support

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Java 46.2%Language:Python 43.5%Language:JavaScript 4.9%Language:ANTLR 4.7%Language:HTML 0.7%Language:Shell 0.0%