Skip to main content

table.rawget(key)

Retrieves the value of the specified key without employing delegation

Availability

Device + Agent

Parameters

Name Type Description
key Any Squirrel data type The required key

Returns

Any Squirrel data type — the value of the specified key, otherwise null

Description

This method attempts to get the value associated with the key passed as a parameter. It does so by bypassing delegation: if the target table lacks the key passed as a parameter, the key will not be automatically passed to the target’s delegate. In fact, Squirrel will report an error: ‘the index doesn’t exist’.

Example Code