Conditions (If)

How an If node tests one field and routes the run through its True or False output, the operators per field type, and the reference of every field, token and the node that publishes it.

Add an If node from the Conditions menu of the canvas. It tests one field published by a node before it: the trigger publishes the ticket, and each action publishes what it did.

Ticket fields always describe the ticket as it is when the node reads them. After Set status, Add tag or any action that changes the ticket, the nodes after it read the new value.

Operators

The operators offered depend on the field.

Field typeOperators
Text (typed)is · is not · is one of · contains · does not contain · starts with · does not start with · ends with · does not end with · is empty · is not empty · matches regex · does not match regex · exists · does not exist
Text (picked)is · is not · is one of · is empty · is not empty · exists · does not exist
Text (picked, never empty)is · is not · is one of · exists · does not exist
List (typed)contains · does not contain · contains any of · contains none of · is not · is empty · is not empty · length is · length is not · length is greater than · length is less than · length is at least · length is at most
List (picked)contains · does not contain · contains any of · contains none of · is empty · is not empty
Packagecontains any of · contains none of · is empty · is not empty
Yes/nois true · is false · exists · does not exist

Picked means you choose the value from a list instead of typing it. The field reference gives the type of each field.

  • Presence operators (is empty, exists, is true and their negatives) take no value.
  • Multi-value operators (is one of, contains any of, contains none of) take a list. In a typed field, press Enter after each value: a value still being typed is flagged.
  • Matches regex uses a linear-time engine, safe against malicious patterns. A pattern is capped at 200 characters. An invalid pattern matches nothing.
  • Length operators compare against a whole number, 0 or more.
  • A condition on a field that no node before it publishes keeps the workflow a draft. The editor names the node and the missing field.

Field reference

The one list of what a workflow can read. Condition is the field's type in the If node. Token is the placeholder to use in a message (— when the value is an internal ID, meaningless in text).

FieldConditionTokenPublished by
Ticket numberText (typed){ticket.number}Every trigger
SubjectText (typed){ticket.subject}Every trigger
Current statusText (picked){ticket.status}Every trigger
PriorityText (picked){ticket.priority}Every trigger
TagsList (picked)—Every trigger
Tag namesList (typed){ticket.tags}Every trigger
Package (shop, category or script)Package—Every trigger
Package ID (manual entry)List (typed)—Every trigger
Package namesList (typed){ticket.package_names}Every trigger
Form buttonText (picked){ticket.type}Every trigger
AssigneesList (picked)—Every trigger
Assignee rolesList (picked)—Every trigger
Customer nameText (typed){customer.name}Every trigger
Project nameNot a condition{project.name}Every trigger
ActorText (picked)—Every trigger except No activity
Actor roleText (picked)—Every trigger except No activity
Previous statusText (picked){trigger.from_status}Status changed
New statusText (picked){trigger.to_status}Status changed
Ticket sourceText (picked, never empty){trigger.source}Ticket creation
Message IDText (typed)—On chat message
Message author typeText (picked, never empty)—On chat message
Message contentText (typed){trigger.message.content}On chat message
Message author (team member)Text (picked)—On chat message
Selected package (shop, category or script)Package—Package selected
Selected package ID (manual entry)List (typed)—Package selected
Selected package namesList (typed){trigger.added_package_names}Package selected
Command nameText (typed)—Command
One field per argument, under its nameText (typed){trigger.command.args.<name>}Command
Inactive sinceText (typed)—No activity
Last authorText (picked, never empty)—No activity
Posted message IDText (typed)—Post message, Ask AI, Ask for the package
Posted message typeText (picked, never empty)—Post message
Posted message contentText (typed){message.content}Post message, Ask AI
Chosen option IDText (picked)—Post message with choices
Chosen option labelText (typed){choice.label}Post message with choices
Scheduled closure dateText (typed){closure.scheduled_at}Schedule closure
Closure skippedYes/no{closure.skipped}Schedule closure
Payment link sentYes/no{payment_link.sent}Send payment link
Linked package IDsList (picked)—Set package, Ask for the package
Linked package namesList (typed){package.names}Set package, Ask for the package
Linked package categoryList (picked)—Set package, Ask for the package
Linked package shopList (picked)—Set package, Ask for the package
Package changedYes/no{package.changed}Set package
Package unlinkedYes/no{package.unlinked}Unlink package
Unlinked package namesList (typed){package.previous_names}Unlink package
Assignee IDText (picked)—Assign to a user
Assignee nameText (typed){assignee.name}Assign to a user
Assignee changedYes/no{assignee.changed}Assign to a user
New priorityText (picked){priority.new}Set priority
Previous priorityText (picked){priority.previous}Set priority
Priority changedYes/no{priority.changed}Set priority
New statusText (picked){status.new}Set status
Previous statusText (picked){status.previous}Set status
Status changedYes/no{status.changed}Set status
Tags addedList (picked)—Add tag, Tag with AI
Names of the tags addedList (typed){tags.added_names}Add tag, Tag with AI
Tags removedList (picked)—Remove tag
Names of the tags removedList (typed){tags.removed_names}Remove tag
Notification sentYes/no{discord.sent}Discord notification
Notified channel IDText (typed)—Discord notification, to a channel
Direct messages deliveredText (typed){discord.dm_delivered}Discord notification, as direct messages
Recipients skippedText (typed){discord.dm_skipped}Discord notification, as direct messages
Webhook succeededYes/no{webhook.ok}Call a webhook
Webhook HTTP statusText (typed){webhook.status}Call a webhook
AI confidenceText (typed){ai.confidence}Ask AI
AI asked for a humanYes/no{ai.staff_handoff}Ask AI
  • A field only exists after its publisher. Place the condition after the action to test what it did.
  • A node fed by several triggers reads only the fields all of them publish. See several triggers in one workflow.
  • Personal data stays out of the run history. Customer name, message content, posted message content, assignee name and command arguments are never stored there.

Who performed the action

Actor is the person whose action fired the event: the member who changed the status, or the author of the chat message. Actor role is that person's role in your project.

  • Customers have no role. Actor role is empty when a customer acts, for example from the portal.
  • No person, no match. For an AI reply, another automation or the GitHub sync, Actor and Actor role are empty. A condition such as Actor role is Owner is then False.
  • Assignee roles lists each role once: contains Support matches as soon as one assignee holds it.

Message author type

Message author type (On chat message) and Last author (No activity) take these values:

ValueMatches
CustomerA message the customer wrote
Team memberA message a member wrote, the project owner included
Project ownerOnly the owner's messages
AI assistantA reply the AI wrote
AutomationA message or package question a workflow posted
  • Team member never matches AI assistant or Automation.
  • System lines are not chat messages: they never fire the trigger.
  • Message author (team member) is empty when a workflow or the AI on its own posted the message.
  • Last author is never Automation. When nobody has written yet, Last author does not exist.

Ticket source

Portal is the portal's ticket form. Order link is a direct ticket link to one script of one order. Discord is the ticket form in your server. An order link ticket is not a Portal ticket: to catch both, use is one of Portal · Order link.

Form button

Form button is the custom button the customer opened the ticket from. A ticket opened any other way has none: is empty is True.

  • A picked button survives a rename. The condition targets the button, not its name.
  • Disabled buttons stay in the list, marked as disabled.
  • A removed button is flagged in the node. It can no longer match, but the workflow stays on and its other branches keep running.
  • In messages, {ticket.type} shows the button's name.

Package

Package tests the ticket's linked packages against shops, categories and scripts picked in one tree, as in Set package. contains any of Main · MLO · VIP rank is True when one package is sold on Main, sits in MLO, or is VIP rank.

The same tree as the package actions.

  • A category covers its sub-categories.
  • Categories are read from your catalog at run time. A package moved on Tebex matches its new category after the next catalog sync.
  • One matching package is enough. There is no "all packages" operator: a condition cannot require every linked package to be in a category.
  • A package no longer in your catalog only matches when the script itself is picked.
  • A ticket with no linked package, or only a free-text name, is empty.
  • Unlinking a package fires nothing. Package selected only reacts to packages being added.

The Selected package fields describe only the packages just linked. Package still describes every linked package.

Chosen option

Chosen option ID is picked from the choices of the messages before the condition. It is mostly useful where branches meet again: right after the message, each choice has its own output. A choice deleted from its message stays in the condition, marked as removed, and never matches.

Branching

  • True runs when the test passes, False otherwise. An unconnected False output ends that branch: the run is recorded as Condition not met and costs nothing against your monthly quota. Other branches still complete.
  • Conditions chained through their True outputs act as an AND.
  • A condition guards its branch, not the action. Another path to the same action skips the test.

Only the True output is connected: other tickets end at the condition.

  1. True: the subject contains refund
  2. False: not connected, the branch ends

Example

Send each ticket to the maintainer of its package category, whether the package is known at creation or linked later.

Trigger
Ticket creation
Every new ticket
Trigger
Package selected
Runs the flow when a package is linked to an existing ticket
If
Field condition
TrueFalse
Not configured yet
Action
Assign to a user
No user selected

Needs configuration: Field condition, Assign to a user

Older conditions

Conditions saved before a change keep working and stay editable. They are just no longer offered for a new condition.

  • Operators no longer offered on a field (contains on a status, for instance) keep running, and the editor still shows them.
  • Packages, Package category and Package shop (and their Selected versions) still run. Package category compares categories exactly, without their sub-categories.
  • A condition on Project name keeps working.
  • A Form button condition written before the button list compares the typed name exactly, so a rename stops it from matching. Pick the button to make it follow renames. A text operator such as contains keeps its typed value.
  • Tickets opened before the button list existed are matched through the button's current name.