TorqueScript Reference

- Main Page
- Related Pages
- Modules
- Classes

Functions
Tagged Strings
Function Categories

## Functions
String | detag (tagID)
String | getTag (taggedString)

## Detailed Description

## Function Documentation

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

  tagID | A numeric tag ID corresponding to a previously tagged string.

Returns
  Returns the string associated with the tag ID.

See also
  commandToClient, commandToServer

String getTag | ( | taggedString |  | ) |

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

Parameters

  taggedString | A 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