How Do I Compare Two Variables in a Sequence?

Updated Nov 6, 2018

Reported In

Software

  • TestStand

Issue Details

I have acquired two variables in a sequence and wish to compare their values against each other.
How do I accomplish this in TestStand?

Solution

There are two ways you can accomplish this:
  1. Use a Statement step to compare the values, and then use Properties >> Post Actions to determine what to do depending on that result.
  2. Use an If step to execute a block of steps conditionally, depending on the conditional expression comparing the variables in the If step.

WAS THIS ARTICLE HELPFUL?

Not Helpful