Equal Objects: Difference between revisions
Updated the page
Nikitaivanov (talk | contribs) (Created page with "/uploads/Equal Objects.png Outputs `True` if both object inputs are equal. Inputs: * Obj1: first object. Defaults to `None`. * Obj2: second object. Defaults to `None`. Output: * Obj1 = Obj2: whether two objects are the same. == Notes == * This checks if the two inputs are the same *object*, not whether they're the same *block type*. E.g. two Grass Block blocks, placed separately in the world, will create two different and independ...") |
(Updated the page) |
||
Line 1: | Line 1: | ||
{{Block | |||
|image=Equal Objects.png | |||
|type=s | |||
|folder=math | |||
|input1={{Port|o|Obj1}} | |||
|input2={{Port|o|Obj2}} | |||
|output1={{Port|t|Obj1 = Obj2}} | |||
}} | |||
Outputs | Outputs <code>True</code> if both object inputs are equal. | ||
== Notes == | == Notes == | ||
* This checks if the two inputs are the same | * This checks if the two inputs are the same ''object'', not whether they're the same ''block type''. E.g. two Grass Block blocks, placed separately in the world, will create two different and independent objects, so they are not equal despite both being made from the same block type. | ||
* Providing only one input will tell you if the variable has no object assigned to it. | * Providing only one input will tell you if the variable has no object assigned to it. | ||
[[Category:Blocks]] | [[Category:Blocks]] |