how do you check if an object in cloud code contains something
O
One More Turn
started a topic
almost 6 years ago
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
O
One More Turn
said
almost 6 years ago
never mind seems as I was doing it right just had a name wrong! :P
1 Comment
O
One More Turn
said
almost 6 years ago
Answer
never mind seems as I was doing it right just had a name wrong! :P
One More Turn
In cloud code, I have an object that can contain multiple stuff.
For example.
definition:
check
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?
never mind seems as I was doing it right just had a name wrong! :P
One More Turn
never mind seems as I was doing it right just had a name wrong! :P
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics