NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TS API: Checking the presence of the variable

Solved!
Go to solution

Hi,

 

Using TS API, is there a chance to check is a variable definied?

 

For example, I'm not quite sure have I  definied numeric variable called Loss (Locals.Loss) and I'd like to check does it exist or not.

 

Is there an API command to do it?

0 Kudos
Message 1 of 2
(3,445 Views)
Solution
Accepted by topic author MimiKLM

PropertyExists("propertyName")

 

Returns True when the property exists.

 


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 2
(3,435 Views)