Hi,
I have a query service setup to an apery database and I am returning a value using:
return '{ $and: [ { "weight": "'+value+'" }, { "rank": "C" } ] }';
This works, but I also want to include a second OR argument for weight
i.e. return where weight = +value+ OR weight = localVar
I just do not know the correct syntax. Something like:
return '{ $and: [ { "weight": "'+value+'" OR localStorage.getItem("localVarName") }, { "rank": "C" } ] }';
Does anyone know the correct syntax?
Cheers,
Tim