1 2 3 4 5 6
if event.type == "train" and atc_arrow then if getstate("mary4-testturnout-1") ~= "cr" then atc_send("BB") error("Incorrect turnout position - correct route and test again") end end