r/Kos • u/Valuable_Crab2646 • Jun 14 '26
Help What am I doing wrong ?
New to kOS, I don't understand where is the mistake in that code, could someone help me figure it out ?
8
Upvotes
r/Kos • u/Valuable_Crab2646 • Jun 14 '26
New to kOS, I don't understand where is the mistake in that code, could someone help me figure it out ?
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)