Click or drag to resize

Hash

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Description

A hash table is a one-to-one unique mapping between a key-value pair. A hash table may contain zero or more sets, separated by commas.

To retrieve a value from the hash table specify the key (enclosed in square brackets) after the hash table's identifier.

Example
Alchemy
$speedColors = {
  "fast" : "green",
  "slow" : "red",
  "normal" : "yellow"
};

PRINT $speedColors["slow"]; /* red */
PRINT $speedColors["foo"]; /* (null) */