NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Exspression stament help

Hi

 

I got a message popup with a user input.

In the post exspression i tried the following an it does not work :

 

Step.Result.Status=Step.Result.Response,
Step.Result.Status == "" ? "Not Entered" : Step.Result.Response

 

Does anyone know why it is not working?

Help share your knowlegde
0 Kudos
Message 1 of 3
(2,650 Views)

All you are doing in that statement is setting the Step.Result.Status.

 

The second line is doing absolutely nothing.  What you want to do is this:

 

Step.Result.Status = (Step.Result.Response == "" ? "Not Entered" : Step.Result.Response)

 

You do not need the 2 lines if you do that.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 3
(2,648 Views)

Thanks i always get confused with these statements.

Help share your knowlegde
0 Kudos
Message 3 of 3
(2,635 Views)