KM8: IF/THEN Variable Calculation

Hey guys, in case you haven't noticed KM8 added a Variable comparison against a calculation in the If Then Else action (KM Wiki)

This will be very useful.

However, I've run into an issue: If I compare against an undefined Variable, I do NOT get an error, as I would expect.
@peternlewis, shouldn't that throw an error?

Here's my test macro that demos this.

###MACRO:   IF/THEN Variable Calculation KM8

~~~ VER: 1.0    2017-10-09 ~~~

IF-THEN Variable Calculation KM8.kmmacros (5.4 KB)
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.

No, there is no facility for conditions to fail. If the condition is invalid, then it is false.

That's too bad. I think a minor typo in a variable name or function name could lead to a faulty macro, which might be very hard for some users to debug/discover.

Any chance of changing this behavior to throw an error?

Meanwhile, I'll update the KM Wiki to make it clear.

It is always difficult to look further than you can see.


Is that like "Ah, but a man's reach should exceed his grasp, Or what's a heaven for?

OR, that's what we have radar/sonar for, to look further than we can see. :wink:
And then there's that "machine intelligence" thing, which you're now using in KM.

I want a machine that prevents me from making errors, from creating bugs. Can you add that to your wish list?