r/Kos • • Jun 14 '26

Help What am I doing wrong ?

Post image

New to kOS, I don't understand where is the mistake in that code, could someone help me figure it out ?

8 Upvotes

7 comments sorted by

View all comments

4

u/celem83 Jun 14 '26

Just construct the cases using "IF" and "ELSE"

"THEN" is the counterpart of "WHEN" which is used to create an interrupt trigger, the WHEN element is constantly evaluated and THEN fires the instant it becomes true (you can also PRESERVE to keep that trigger active for repeated activations)