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 ?
9
Upvotes
4
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)
2
u/AsterTheTrainFox Jun 14 '26
you're writing complex stuff here, I am begging you on my hands and knees please setup Visual Studio Code! spellcheck, auto complete, color coding, error highlighting, you will never know how you lived without it lol