freezing-carpenter-9818
08/18/2023, 9:51 PMconst userInput = event.payload.text;
const records = await EmployeesTable.findRecords({});
const existingRecord = _.find(records, { 'pin': userInput });
const recordExists = !!existingRecord; // convert to boolean
if(recordExists) {
console.log('Record exists');
} else {
console.log('Record does not exist');
}
return recordExists; // return boolean result
how would i then use and expression based on the result?