Hello everyone,
I am trying to return a variable from the cloudscript as string.
Here, I simplified the code down below. The "result" variable changes depending on some conditions then I return the variable as json format. When I print the function result, it shows me {"result":100} instead of {"success":100} or {"fail":100}.
var result; if(/* condition */) { //... code result = "success"; } else { //... code result = "fail"; } return { result: 100 };