// If the user is considered 'not active', then delete // If they are active write an info message instead if currRecord.status = false then begin data.deleteRecordByPrimaryKey(tr, table, pk); end else log.info('Active users cannot be deleted.');