Evaluating Conditional Logic

  • Typical example
    1. stepspassed(12,18) && stepsfailed(14,21) || ~var1~ > 10
  • If-true is configured
  • Expression evaluation
    1. If evaluating → stepspassed(stepnum)
      1. Retrieve all the stepnums from the expression
      2. Retrieve the step status for the current execution
      3. Return false if any of the steps do not have a status of “PASS”
      4. Else replace this expression with true and continue to evaluate the next expression

 

  1. If evaluating → stepsfailed(stepnum)
    1. Retrieve all the stepnums from the expression
    2. Retrieve the step status for the current execution
    3. Return false if any of the steps do not have a status of “FAIL”
    4. Else replace this expression with true and continue to evaluate the next expression
  • Look for any variable being present in the rest of the expression
    1. If any variables are found – replace them with the runtime value
  1. Evaluate all the expressions
    1. Return the result of the evaluation
    2. Return false if the evaluation fails

Have other questions? Access our full knowledge base!

Verified by MonsterInsights