Conditional Logic and Looping

# End an automation if a condition is not met

Axiom's "Continue only if a condition is met" step lets you check data for one or more values. If those values are found in the data, Axiom will continue the execution; otherwise, it will end.

To use this step, first create a step to access the data you want to check. This might be reading from a google sheet, or scraping web data.

Secondly, click the "Add a step" button in the Axiom builder and find the "Continue only if a condition is met" step. You can use the search bar to make find it more quickly. Click it to add this step to your Axiom.

Thirdly, enter the keywords you want to check the data for. You can enter multiple keywords here, separated by commas, and can select whether all the data must appear in the data set for the condition to pass, or if it should pass if any of the keywords are present. You can select "Exact Match" to exclude partial matches from being accepted.

Finally, you can optionally chec the "Fail if condition not met" checkbox if you want the Axiom to trigger an error notification when the condition does not pass.

# Jump to a different step in the automation if a condition is met

Axiom's "Conditionally jump to another step" step lets you check data for one or more values. If those values are found in the data, Axiom will move to the given step number.

To use this step, first create a step to access the data you want to check. This might be reading from a google sheet, or scraping web data.

Secondly, click the "+" button in the Axiom builder and find the "Conditionally jump to another step" step. You can use the search bar to make find it more quickly. Click it to add this step to your Axiom.

Thirdly, enter the keywords you want to check the data for. You can enter multiple keywords here, separated by commas, and can select whether all the data must appear in the data set for the condition to pass, or if it should pass if any of the keywords are present. You can select "Exact Match" to exclude partial matches from being accepted.

Finally, enter the step number that the Axiom should jump to if the condition passes. The step number is shown in the Axiom builder like so:

# Loop while a condition is true

The "Jump if a condition is met" step can be used to create loops by jumping to a previous step in the Axiom. The condition will then be checked multiple times until it no longer passes, at which point the Axiom will continue to the end.

# Loop 'Interact with page' a specified number of times

Currently, there are two ways to do this.

# Loop X times, where X is small (Fastest method)

Add the 'Enter custom data' step, and input:

1
2
3
...until your number, X

Now pass this as data input to 'Interact with page'. e.g. [custom-data]

# Loop X times, where X is large

Add the 'Enter custom data' step, and input any word once (e.g. loop)

Then add the 'Conditionally jump to another step' step.

  • Under 'Data to check' input [custom-data]
  • Under 'Words to check' input 'loop', and match 'Any'
  • Under 'Jump to step' input your 'Interact with page' step
  • Under 'Maximum Cycles', input X to loop X times.