Description of your new file.
STRING
, NUMBER
, or BOOLEAN
.EQUALS
, NOT EQUALS
, GREATER THAN
, etc.Example
Imagine you need to send notification to a user whose ID is verified and check their country if India use one provider, if USA use another provider. So use the if node in advanced workflow for this.You can configure the If Node like this:
- A user submits their country, and if their ID is verified or not verified.
- Your backend fetches the corresponding details of the user from the database and passes it to Siren.
This checks if the submitted country matches the required one. The other branch can look like this, where Value A fetches from the database whether the person’s ID is verified or not.
- Value A:
${workflow.input.data.country}
(value retrieved from your database)- Type:
STRING
- Operator:
EQUALS
- Value B:
India
(the Country the user entered)These conditions can then be combined using AND logic — so the workflow proceeds only if both checks pass.
- Value A:
${workflow.input.data.verification}
- Type:
STRING
- Operator:
EQUALS
- Value B:
verified
switch-case
logic in programming.
${workflow.input.data.}
) to evaluate dynamically.Example
Suppose you want to notify users based on their preferred channel.This allows you to streamline multi-channel workflows in a clean, organized way.
- Use
${workflow.input.data.channel}
as your Switch Expression- Add cases like
sms
, andpush
- Connect each case to the respective channel’s template node
- Let the fallback case handle any unknown or missing channel values