More then one command in one row posible?

Joined
Dec 15, 2020
Messages
8
#1
Hi guys I have a question. Is it posible to write more then one command in one row?

example:
row
1 if :ButtonState == 1 then goto 2 else goto 1 end
2 : DoorState = 1 :Lightstat = 1

is it possible to write that in this form ? or do I have to write it like this ?

row
1 if :ButtonState == 1 then goto 2 else goto 1 end
2 : DoorState = 1 (I know the space is wrong but otherwise there is a smile " :DoorState = 1 "
3 :Lightstat = 1
 

CalenLoki

Master endo
Joined
Aug 9, 2019
Messages
741
#3
You can fit as many commands in a line as you can fit.

And regarding your example... Just name the button, light and the hinge the same, and don't use yolol.
 
Top