Content (before)
Check if Variable already exists
Hey guys,
is there a way to check, if a variable already exists via Visual Logic?
I've written a Visual Logic Code which triggers SIMUL8 to create multiple global variables on Reset.
Every time, when a variable already exists and the code is running, Simul8 creates a new additional variable, which has a number added to the end of the variable name.
Example:
gbl_Number1 already exists
Visual Logic Code On Reset:
"...Create Global Data Item "gbl_Number1" , Number, 13
--> Simul8 creates "gbl_Number 2" and so on...
Best regards,
Sebastian
Tagged:
Comments
Was this answer helpful?
0
Found a way how to check all the global data:
https://www.simul8.com/support/help/doku.php?id=features:visual_logic:commands:get_information_store_list