Dear All,
I am attempting to query the value of a number of fields to see if they are empty or not and if they are all empty the query has an outcome, if some are empty another outcome: my understanding of Wix data Query is limited and request if anyone can have a look at the code below and advise where I may be going wrong? @sapirh @yisrael-wix any help greatly appreciated.
$w.onReady( function () {
const item = wixData.get(“dataCollection”, wixUsers.currentUser.id)
var a = item.selfie
var b = item.utilityBill
var c = item.photoId
var d = item.photoId2
wixData.query("dataCollection", wixUsers.currentUser.id)
.isNotEmpty("a&b&c&d")
.find()
.then(() => {
if (item.a & b & c & d.length > 0) {
$w(‘#image’).src = ‘wix:image://v1/033844_64be3982cbb847f9a0052abd58a0ed26~mv2.png/Amber.png#originWidth=144&originHeight=147’;
}
})
})