TorqueScript Reference
Functions
Tagged Strings

Functions

String detag (tagID)
 
String getTag (taggedString)
 

Detailed Description

Function Documentation

◆ detag()

String detag ( tagID  )

Use the detag function to convert a tag to a string. This can only be used in the proper context, i.e. to parse values passed to a client command or to a server command. See 'Remote Procedure Call Samples' below.

Parameters
tagIDA numeric tag ID corresponding to a previously tagged string.
Returns
Returns the string associated with the tag ID.
See also
commandToClient, commandToServer

◆ getTag()

String getTag ( taggedString  )

Use the getTag function to retrieve the tag ID associated with a previously tagged string.

Parameters
taggedStringA previously tagged string.
Returns
Returns the tag ID of the string. If the string was not previously tagged, it gets tagged and the new tag ID is returned