Isn't this illegal Kode?

Hello. I was just creating a Formula Trigger for a Flow and I noticed the following example formula displayed in grey before I filled in my formula (nearly identical except only a single =):

Isn’t $df(mm) % 5 == 0$ illegal? When I tried to use the == operator, I get errors. And when I look at this very fine guide to Kode, I see no mention of a == operator.

Hi there,

I think that placeholder text has a typo. Yes, the == operator is supposed to be invalid in Kustom formula.

Should you interested in the list of valid operators in a Kustom formula, here’s the official reference.

I hope this would help.
:smiling_face::+1:

Thanks for confirming my suspicions. I am pretty well aware of the “official” and “non-official” references. But it is good to be reminded.

Frank probably accidentally wrote == since that’s what almost every programming language uses including the language he’s writing the UI in

Thanks for confirming my suspicions. It is true that C and C-derivative languages such as Java employ == for equality while = means assignment. It seemed obvious to me that Kustom Kode did not employ ==. But I doubt myself. Best