Experimental Next-Gen Rules Engine Documentation 3 of : Your First Rule

I’d like to share a little something I painfully discovered while testing this while I was experimenting with Flows Builder - a visual designer for the new rules engine - #12 by ysc

Here the script shouldn’t actually use a return statement - instead, the value of the last statement is the one that counts.

So don’t do:

var result = (condition);
...
return result;

But:

(condition)

or even:

var result = (condition);
...
result;

At least it was the case a year ago!