Equal Objects: Difference between revisions

From Fancade Wiki
(Updated the page)
(Standartise description among all Equal X pages)
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
|input1={{Port|o|Obj1}}
|input1={{Port|o|Obj1}}
|input2={{Port|o|Obj2}}
|input2={{Port|o|Obj2}}
|output1={{Port|t|Obj1 = Obj2}}
|output1={{Port|t|<nowiki>Obj1 = Obj2</nowiki>}}
}}
}}


Outputs <code>True</code> if both object inputs are equal.
Outputs [[True]] if both [[object]] inputs are equal and False otherwise.


== Notes ==
== Notes ==
Line 15: Line 15:
* 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.


== Related ==
* [[Equal Numbers]]
* [[Equal Vectors]]
* [[Equal Truths]]


[[Category:Blocks]]
[[Category:Blocks]]

Latest revision as of 00:38, 23 August 2025

Equal Objects
Equal Objects.png
TypeScript block
ColliderNone
FolderMath
Ports
Inputs Obj1
Obj2
Outputs Obj1 = Obj2

Outputs True if both object inputs are equal and False otherwise.

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 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.

Related