Difference between revisions of "Rawequal"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Checks whether v1 is equal to v2, without invoking any metamethod. Returns a boolean. <source lang="lu...")
 
Line 4: Line 4:
 
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">
 
<source lang="lua">
(bool), = rawequal(v1v2,)
+
(bool) = rawequal(v1,v2)
 
</source>
 
</source>
'''v1:''' (any) first value to compare ''''''<br/>
+
'''v1''': (any) first value to compare ''''''<br/>
'''v2:''' (any) second value to compare ''''''<br/>
+
'''v2''': (any) second value to compare ''''''<br/>
 
'''Returns''' (bool) true if values are equal, or false if different<br/>
 
'''Returns''' (bool) true if values are equal, or false if different<br/>

Revision as of 11:21, 23 August 2018

Available since: Gideros 2011.6

Description

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

(bool) = rawequal(v1,v2)

'v1: (any) first value to compare '
'v2: (any) second value to compare '
Returns (bool) true if values are equal, or false if different