Difference between revisions of "Rawequal"

From GiderosMobile
 
(2 intermediate revisions by one other user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Checks whether v1 is equal to v2, without invoking any metamethod. Returns a boolean.
 
Checks whether v1 is equal to v2, without invoking any metamethod. Returns a boolean.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(bool) = rawequal(v1,v2)
 
(bool) = rawequal(v1,v2)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===
Line 15: Line 15:
 
=== Return values ===
 
=== Return values ===
 
'''Returns''' (bool) true if values are equal, or false if different<br/>
 
'''Returns''' (bool) true if values are equal, or false if different<br/>
 +
 +
=== See also ===
 +
'''https://luau.org/library#global-functions'''<br/>
  
 
{{(global)}}
 
{{(global)}}

Latest revision as of 12:22, 21 July 2025

Available since: Gideros 2011.6
Class: (global)

Description

Checks whether v1 is equal to v2, without invoking any metamethod. Returns a boolean.

(bool) = rawequal(v1,v2)

Parameters

v1: (any) first value to compare
v2: (any) second value to compare

Return values

Returns (bool) true if values are equal, or false if different

See also

https://luau.org/library#global-functions