Skip to main content

table.rawset(key, value)

Sets the value of the specified key without employing delegation

Availability

Device + Agent

Parameters

Name Type Description
key Any Squirrel data type The required key
value Any Squirrel data type The required key’s value

Returns

Nothing

Description

This method attempts to set the value associated with the passed key with a new value, also 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, ie. the delegate slot’s value will remain unchanged. Instead Squirrel creates a new slot in the target table with the passed value assigned to the passed key.

Example Code