I’m frustrated

Multiple conditions for a Where clauses

I am trying to pass two local variables to one where clause. As seen in the documentation here http://devcenter.appery.io/documentat...

This is the code I am using. I have placed it in the Where clause.

var RestaurantNameObject = localStorage.getItem(RestaurantName);
var RestaurantHeaderObject = localStorage.getItem(RestaurantHeader);
var RestaurantNameJSON = JSON.stringify(RestaurantNameObject);
var RestaurantHeaderJSON = JSON.stringify(RestaurantHeaderObject);
return {"$and":[{"RestaurantName": RestaurantNameJSON},{"HeadingName": RestaurantHeaderJSON}]};

When I test the app I get an error with this description -- RestaurantName is not defined

I have RestaurantName and Header save in local variables from previous pages.
2 people have
this question
This topic is no longer open for comments or replies.