no errors, just im finding it dfifficult to use th...
# 🌎general
f
no errors, just im finding it dfifficult to use the expression to match the execute code card.... here is another working code
Copy code
const 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?