(`{{ ... }}`) to dynamically evaluate logic. These expressions are enclosed in double curly braces (`{{ ... }}`) and evaluated at runtime.
Expressions can access:
- Data from previous steps (
$json,$prev, etc.) - The loop context
- Built-in functions and utility libraries
"active":
Expression inputs
You can access the following contextual data inside expressions:
Example:
Type conversion tip
Some values (such as “true” or “false”) are returned as strings. To ensure your conditions behave as expected, you can enable Convert types where required in the Condition node settings. Without type conversion:Example: Remove addon from a subscription
At the end of a billing period, remove a specific addon from a subscription if it exists.- Run this workflow on a schedule or based on a billing-related event.
- Use the List Subscriptions action to retrieve active subscriptions.
- Use a loop node to iterate through the returned subscriptions.
-
For each subscription, loop through its
addonsarray. - Condition Check
- Update Subscription
- Subscription ID: Pass from the previous loop context
- Addons: Supply a filtered list that excludes the unwanted addon
[].
Using Luxon for date manipulation
TheDateTime object is available for date handling inside expressions.
Examples: get dates
Get today’s ISO date:Multi-line code blocks and variable declarations are not allowed in expressions.
