Skip to content
Digital Inspiration DocsDigital Inspiration Docs

Conditions tell a workflow which rows to act on. Without conditions, the workflow processes every row. With them, it processes only rows where the values match your rules.

Use conditions to send a certificate only to students who passed, an invoice only for orders marked as shipped, or a welcome pack only to people who chose one membership plan.

Ana teaches Grade 7 science. Her quiz results arrive in a Google Sheet through a Google Form. She wants a certificate for each student who scored 80 or more, but only in the Photosynthesis quiz.

Field Condition Value
Score Greater than 79
Quiz Exactly matches Photosynthesis

Both rules are joined with AND, so a row must pass both.

  1. Open your workflow and go to the Conditions step.

  2. Select Process specific rows. For a Google Form, the option reads Process specific form responses. A block titled Only Continue if… appears.

  3. Choose a column in Choose Field….

  4. Choose a comparison in Choose Condition….

  5. Type the value in the third box. For a comparison that takes a list, type each value and press Enter.

  6. Click Continue.

Conditions step with Process specific rows selected and two rules: Score Greater than 79, and Quiz Exactly matches Photosynthesis
Two rules in one block. A row must pass both.
Button What it adds The row is processed when
AND Another condition in the same block Every condition in the block is true
OR A new block, titled Or Continue if… All conditions in any one block are true

Ana also wants a certificate for anyone who scored a perfect 100 in any quiz. She clicks OR and adds one condition in the new block:

Block Conditions
Only Continue if… Score greater than 79 AND Quiz exactly matches Photosynthesis
Or Continue if… Score equal to 100

To remove a condition, click the trash icon at the end of its row.

Text comparisons ignore capital letters and spaces at either end.

Comparison True when Takes a list
Is any of The value is one of your values Yes
Is none of The value is not one of your values Yes
Exists The cell is not empty No value
Does not exist The cell is empty No value
Exactly matches The whole value is your text No
Does not exactly match The whole value is something else No
Contains Your text is somewhere in the value Yes
Does not contain Your text is nowhere in the value Yes
Starts with The value begins with your text Yes
Does not start with The value begins with something else Yes
Ends with The value ends with your text Yes
Does not end with The value ends with something else Yes
Greater than The value is a number above yours No
Less than The value is a number below yours No
Equal to The value is the same number No
Not equal to The value is a different number No
Matches regex The value fits your pattern No
Does not match regex The value does not fit your pattern No

With a list, the comparison is true when it holds for any value in the list. Ends with gmail.com, yahoo.com matches addresses at either one.

  • Greater than and Less than leave out the number itself. For “80 or more”, use Greater than 79.
  • Document Studio removes currency signs, percent signs and letters before it compares. $25 is read as 25, and 85% as 85.
  • A comma is read as a decimal point. 1,200 is read as 1.2, not as one thousand two hundred. Keep amounts in the sheet without a thousands separator when you compare them.
  • A Google Forms quiz score such as 40 / 50 is read as 40.

A regular expression, or regex, is a pattern that describes text. The match ignores capital letters.

Pattern Matches
^INV-\d{4}$ INV- followed by exactly 4 digits
london|paris|rome A value that has any of these words
@(gmail|yahoo)\.com$ An address at Gmail or Yahoo
^\s*$ A cell with only spaces
  • Document Studio checks the conditions for each row before it runs any task.
  • A row that does not match is left alone. Its status cells show NO_MATCH, with a note that lists the conditions that failed. The row’s value is in brackets after each condition.
  • A row that did not match is checked again on the next run. If you correct the value in the sheet, the row is processed then.
  • On the Run step, rows that don’t match are counted as Unmatched Rows.
  • Conditions apply to the whole workflow. To run one task for some rows and another task for other rows, create two workflows with different conditions.
  • If you rename a column in the sheet, open the workflow and choose the field again.
  • The list of fields has the column titles of the source sheet.
  • To change the text inside a document or an email by condition, and not which rows run, use scriptlets.
  • Read the status cell or its note for a row. It names the condition that failed and the value that the row had.
  • Check for an extra word. Exactly matches Yes does not match Yes, please. Use Contains or Starts with.
  • For a number comparison, check that the cell holds a number. Text such as eighty can’t be compared.

Process all rows is selected, or the conditions are in two blocks where you meant one. Conditions in separate blocks are alternatives. Put conditions that must all be true in the same block with AND.

The comparisons are made for text and numbers, not for dates. Add a helper column to the sheet with a formula such as =A2>TODAY(), and add a condition that this column exactly matches TRUE. To act a number of days before or after a date, use a time delay.