Skip to content
Developers

Logic operations explained

Full-seat members

Tallyfy automations pair a condition with an action. Tallyfy checks conditions at launch, against the kick-off form, and again whenever a task is completed or reopened. If the condition is true, the action changes the process, for example by showing a step or moving a deadline. Each automation runs at most once per process (when an automation runs).

Every automation follows this pattern:

IF [something is true]
THEN [do this action]

Conditions check a step’s status, such as completed or approved, or the answer in a form field.

Examples:

  • IF a user selects “Urgent” in a form field
  • IF a task is approved by a manager
  • IF a task is completed or reopened
  • IF a form field contains (or doesn’t contain) a specific value

Actions run when the conditions are true.

Examples:

  • THEN show or hide steps
  • THEN assign the task to a different person or team
  • THEN adjust deadlines
  • THEN trigger a webhook to an external system (you can add this one only through the API today)

Tallyfy lets you combine conditions with AND or OR.

AND means ALL conditions must be true.

IF [condition 1 is true] AND [condition 2 is true]
THEN [do this action]

Example: IF the user selects urgent priority AND the amount is over $1000 THEN show the executive approval step

OR means AT LEAST ONE condition needs to be true.

IF [condition 1 is true] OR [condition 2 is true]
THEN [do this action]

Example: IF the client selects VIP service OR the order amount exceeds $5000 THEN show premium processing steps

Tallyfy evaluates conditions left to right1: the exact order you add them.

Given this automation:

IF [condition 1] AND [condition 2] OR [condition 3]
THEN [do this action]

Tallyfy processes it step by step:

  1. Evaluate condition 1
  2. AND condition 2 with the result so far
  3. OR condition 3 with the accumulated result

The action triggers if:

  • Both condition 1 AND condition 2 are true, OR
  • Condition 3 is true by itself

Tallyfy doesn’t use operator precedence like programming languages (where AND would evaluate before OR). Conditions run in the order you add them. In the example above both methods give the same answer, but they differ when OR comes first. Tallyfy reads [condition 1] OR [condition 2] AND [condition 3] as “1 or 2, and also 3”, so condition 3 must always be true. A programming language would read it as “1, or else 2 and 3”, so condition 1 alone would be enough.

Don’t cram everything into one massive automation. Split it into several, each doing one thing.

An automation that uses only AND, or only OR, gives the same answer in any order, so evaluation order stops mattering. Smaller automations are also easier to troubleshoot.

Tallyfy compares an empty form field like any other value:

  • Text fields: An empty field never matches contains and always matches does not contain
  • Dropdowns: No selection matches is not for every option and never matches is
  • Number fields (short text with numeric validation): An empty field matches neither is greater than nor is less than
  • Checklist and file fields: An empty list never matches contains or is

Problem: A step shows up even though conditions don’t seem true.

Likely cause: You’re using OR logic with is not conditions.

  • “Field A is not ‘Option 1’” evaluates to TRUE when the field is empty
  • “Field B is not ‘Option 2’” also evaluates to TRUE when empty
  • With OR, if ANY condition is true, the action triggers

Fix this by:

  1. Making the field required so it’s never empty
  2. Adding an explicit “is not empty” check
  3. Using positive conditions (is) instead of negative ones (is not)

Templates > Automations

A Tallyfy automation pairs conditions with actions on a template, so running processes adapt to…
  1. Processing order differs from standard programming operator precedence where AND typically evaluates before OR ↩