Skip to main content

table.rawin(key)

Checks for the presence of the specified key in the table without employing delegation

Availability

Device + Agent

Parameters

Name Type Description
key Any Squirrel data type The key to check

Returns

Boolean — true if the key is present, or false if is not

Description

This method checks whether the target table contains a slot assigned with the passed key, returning true if the key is present, or false if is not. The check is made without delegation, so the result guarantees that the key is present in the target; with delegation, a true reading — discovered using Squirrel’s in keyword — indicates the key is present in either the target, its delegate or both.

Example Code