rawequal()

Type Function
Library (globals)
Return value Boolean
Revision 2017.3179
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