Skip to main content

Using Expressions

Expressions allow you to make your Talos workflows dynamic. Instead of using fixed values, you can use expressions to calculate numbers, manipulate text, and use information stored in variables.

Where to use Expressions

Almost every field (property) in a Talos Action supports expressions. There are two main ways you will use them:

1. Direct Expressions

In fields that expect a value (like a number, a date, or a true/false choice), you can write the expression directly.

  • Example: 10 + 5
  • Example: ${Counter} > 0
  • Example: "Hello World"

2. Dynamic Text (Interpolation)

In fields that expect text (like an Email Subject or a File Path), you can mix normal text with expressions by wrapping the expression in double curly braces {{ }}.

  • Example: The current count is {{ ${Counter} }}
  • Example: C:\Reports\Status_{{ ${ReportDate} }}.txt

Why use Expressions?

Expressions are essential for:

  • Performing Calculations: Adding numbers, calculating totals, or incrementing counters.
  • Dynamic Paths: Creating file paths that include dates or specific names.
  • Data Manipulation: Converting text to uppercase, extracting parts of a string, or getting items from a list.
  • Decision Making: Comparing values to decide which path a workflow should take.