@stringlookup()

Retrieves a value stored in a string lookup table.

Syntax

@stringlookup (key)

Type

HyperMesh Template Function

Description

Retrieves a value stored in a string lookup table.

Inputs

key
Used to compare the keys found in the string lookup table. key can be a data name or a literal string enclosed in double quotes.

Example

The following example looks for the string "shells" in the string lookup table.

*if([@stringlookup("shells")])
 *string("$ shells found") *end()
*endif()

The following example finds components whose names are in the string lookup table:

*components("","")
 *format()
  *if([@stringlookup(name)])
   *field(string,name,32) *end()
  *endif()
*output()

Errors

None.