In a RouterOS script is there an equivalent to a GoTo statement in Basic? What I'm trying to accomplish is if a certain variable is some value, I want to skip a section of the script (about 30 lines). I can at least sort of do it with a :if, but it can be a bit convoluted. This will be repeated many times within the script.
Presumably since RouterOS does not have line numbers like BASIC (thank God), it would require a label and the GoTo would go to the label. I did not see either of these in the WiKi.
Note, I am doing this in RouterOS 6.49.15 on an RB4011iGS+
Presumably since RouterOS does not have line numbers like BASIC (thank God), it would require a label and the GoTo would go to the label. I did not see either of these in the WiKi.
Note, I am doing this in RouterOS 6.49.15 on an RB4011iGS+
Statistics: Posted by k6ccc — Tue Jan 28, 2025 8:07 pm