ES2Data.TagExists
public static bool TagExists(string tag)
Parameters
[table th=”0″]tag,”The tag we want to check the existence of.”[/table]
Returns
[table th=”0″]bool,”Whether this tag exists in this ES2Data.”[/table]
Description
Checks whether a tag exists in this ES2Data.
C#
// 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
// 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");