NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Interpreting a Post-Expression step

Solved!
Go to solution

I am fairly new to Teststand.  How do I interpret this post expression.  There is a custom data type that has been created.  I understand the part till the "False" after "Evaluate(Step.DataSource):False.   However, I am not sure if the step after the following comma containing a string comparison is the beginning of an else if.  Please provide assistance in referring me to some documentation to understand this step.

Step

.DataSource !="Step.Result.String"? Step.Result.String = Evaluate(Step.DataSource):False,(StrComp(Step.Result.String, Step.Limits.String,(Step.Comp =="CaseSensitive"?0:1))==0)?"Passed":"Failed"

0 Kudos
Message 1 of 2
(2,783 Views)
Solution
Accepted by topic author kerugoya

There are two statements.  The first is a way to assign Step.Result.String to the value of the data source if it isn't used for evaluation.  The comma starts a new statement, which evaluates the step result based on whether the Step.Result.String is equal to Step.Limits.String.

 

The ? : syntax refers to a conditional, in the following way- (Condition)?(True case):(False case).

Message 2 of 2
(2,782 Views)