Advanced node type: Condition node with expressions

Created by Certorix Online, Modified on Mon, 4 May at 9:29 PM by Certorix Online

Condition node advanced expressions

Condition nodes can evaluate complex expressions beyond simple equality checks.

Expression syntax

Condition nodes use a JavaScript‑like expression language. Available operators:

  • Equality==, !=, ===, !==
  • Comparison>, <, >=, <=
  • Logical&& (and), || (or), ! (not)
  • String operations.includes(), .startsWith(), .endsWith(), .match(regex)
  • Numeric operations+, -, *, /, %

Example expressions

  • Check if answer is 'Yes' ignoring case: answer.toLowerCase() == 'yes'
  • Check if serial number starts with 'SN': serialNumber.startsWith('SN')
  • Check if age is between 18 and 65: age >= 18 && age <= 65
  • Check if product name contains 'Pro' or 'Max': product.includes('Pro') || product.includes('Max')
  • Check if error code matches pattern: errorCode.match(/ERR-\d{4}/)

Available variables

Within a Condition node, you can reference:

  • Answers from any Question node (by node ID: answers['nodeId'])
  • Values from any Input node (by node ID)
  • sessionId – Current session identifier
  • timestamp – Current server time (Unix timestamp)

Multiple conditions

A Condition node can have multiple branches. Order matters:

  1. Evaluate conditions in the order defined
  2. First condition that matches determines the path
  3. If no condition matches, follow the 'otherwise' (default) path

Example: If you have conditions for 'Gold tier', 'Silver tier', 'Bronze tier' in that order, a Gold customer will match the first condition and not check the others.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article