ES2Data.TagExists
Parameters
tag | The tag we want to check the existence of. |
Returns
bool | Whether this tag exists in this ES2Data. |
Description
Checks whether a tag exists in this ES2Data.
C#
1 2 3 4 5 6 |
// Use ES2Data to load all of the data from a file. ES2Data es2data = ES2.LoadAll("myFile.txt"); // Check if a tag exists before loading it. if(es2data.TagExists("myInts")) myInts = es2data.LoadList<int>("myInts"); |
JS
1 2 3 4 5 6 |
// Use ES2Data to load all of the data from a file. var es2data : ES2Data = ES2.LoadAll("myFile.txt"); // Check if a tag exists before loading it. if(es2data.TagExists("myInts")) myInts = es2data.LoadList.<int>("myInts"); |