- Setting record fields
- Sending email messages
- Responding to chat messages
- Sending text messages
- Executing HTTP requests
- Generating notifications
- …and so on
The content of this text may need to vary depending on any number of factors – the current worker, record, automation inputs, day of week, etc.
In a traditional programming language, you typically generate text output like:
print("Hello, " + firstName + "!");
This is cumbersome when you’re dealing with a lot of text.
Instead, Cerb scripting is a full-featured templating language based on Twig1. A templating language makes the simple assumption that everything you type is text output until it encounters a special command.
The example code above would instead be written as:
- Arrays and Objects
- Conditional Logic
- Regular Expressions