Sign In Register

How can we help you today?

Start a new topic
Answered

how do you check if an object in cloud code contains something

In cloud code, I have an object that can contain multiple stuff.


For example.


definition:

 

var standardObject = {}

check

if (standardObject["tags"] !== undefined) {
    for (var a = 0; a < standardObject["tags]..length;a ++) {
        Spark.setSparkData("tag"+a,standardObject["tags][a]);
    }
}

 but when I do something like this I get an error

"error": "Error loading module: checkTags msg: ReferenceError: \"standardObject\" is not defined. (299497-modules-checkTags#82)"


Any ideas?


Best Answer

never mind seems as I was doing it right just had a name wrong! :P

1 Comment

Answer

never mind seems as I was doing it right just had a name wrong! :P

Login to post a comment