08-01-2011 07:08 PM
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"
Solved! Go to Solution.
08-01-2011 07:51 PM
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).