09-13-2007 06:54 PM
09-13-2007 08:11 PM
09-14-2007 01:18 AM
Hi,
There's two things wrong with this.
1. Its "Failed"
2. Step.Result.Status will not have been evaluated yet. The Status gets evaluated after the Post Expression. Therefore your flag will not have changed value.
You would have to use one of the Callbacks such as PostResultListEntry.
Regards
Ray
03-15-2011 01:12 PM
In the example above, is it necessary to put "if (Step.Result.Status == "Fail")" and "Local.flag = 1" on separate lines, or can they be strung together on one line like:
if (Step.Result.Status == "Failed") Local.flag = 1
No trees were harmed in making this post. However, several electrons were moderately inconvenienced.
03-15-2011 01:35 PM
Here is another post that may be helpful to you:
http://forums.ni.com/t5/NI-TestStand/Set-a-variable-in-a-post-expression/m-p/1186981