rawequal()

Type Function
Library (globals)
Return value Boolean
Revision Release 2024.3703
Keywords rawequal, rawget, rawset, tables, values
See also rawset(), rawget()

Overview

Performs an equality (==) check between two values without invoking a metamethod. Returns a Boolean.

Syntax

rawequal( value1, value2 )
value1, value2 (required)

Numbers or Strings. Two values to be compared.

Example

local val1 = 5
local val2 = 5
print( rawequal( val1, val2) ) -- true