Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

How to compare two objects?

$
0
0
So let's say we have object "foo":
<<set $foo to { favouriteGame : "Asteroids" }>>
And we also have an object "bar":
<<set $bar to { favouriteGame : "Asteroids" }>>
Is there a function or method (like .equals()?) that I can use that compares two objects and returns true/false based on whether or not their contents are equal?
If there is and I just couldn't find it, does it compare sub-objects, too?

Viewing all articles
Browse latest Browse all 1844

Trending Articles