Equal Objects

From Fancade Wiki
Revision as of 19:07, 16 May 2024 by 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

/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 independently moving 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.