G.rawequal

From GMod Wiki

Revision as of 20:23, 11 November 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax rawequal( Var one, Var two )
Where is this used?
Description:
Compares two objects without invoking the __eq metamethod.
Returns: Boolean
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.rawequal]G.rawequal [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCompare two vectors to see if they are the same
Used onNewerShared.png
Code
print( rawequal( Vector( ) * 2, Vector( ) * 2 ) )
print( rawequal( Vector( ) * 2, Vector() * -2 ) )
Outputtrue
false


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox