diff --git a/ts/smartrule.classes.smartrule.ts b/ts/smartrule.classes.smartrule.ts index e996c51..f95b74b 100644 --- a/ts/smartrule.classes.smartrule.ts +++ b/ts/smartrule.classes.smartrule.ts @@ -32,6 +32,8 @@ export class SmartRule { const outcomes: TTreeActionResult[] = []; for (const rule of nextBatch) { const checkResult = await rule.checkFunction(objectArg); + checkResult ? null : console.log('WARNING!!! Please make sure your rule always returns a statement of how to continue!'); + if (checkResult.startsWith("apply")) { await rule.actionFunction(objectArg); // here the action function is run }