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

Check if the contents of a variable are an object or not

$
0
0
I'm using Sugarcube.

Simple question that I can't seem to figure out: How do I take an object
<<set $foo = {
    bar : 0
}>>
and check if it is or is not an object:
<<if isObject($foo)>>
    /%Do stuff here%/
<</if>>

Viewing all articles
Browse latest Browse all 1844

Trending Articles