G.rawequal
From GMod Wiki
Revision as of 20:23, 11 November 2009 by Crazy Quebecer (Talk | contribs)
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: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.rawequal]G.rawequal [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Compare two vectors to see if they are the same |
---|---|
Used on | |
Code | print( rawequal( Vector( ) * 2, Vector( ) * 2 ) ) print( rawequal( Vector( ) * 2, Vector() * -2 ) ) |
Output | true false |