getString

Get a string defined in the global lookup table.

Note: Use the getString function if the lookup table has no ID. If the lookup table has an ID, use the getPrivateString function. For more information about the getPrivateString function, see getPrivateString on page 161.

Syntax

ogscript.getString (Key);

Parameters

Parameter

Type

Required

Description

Key

String

Yes

Private lookup table from which to get string.

Returns

Object

Example

This example uses the getString function to read an IP address stored in a lookup table. The lookup table definition for this example is as follows:

<lookup>

<entry key="Tom">television</entry>

</lookup>

The script to read an entry from the lookup table is as follows:

//Get the string associated with entry key Tom ogscript.getString('Tom');