Code: Select all
:global stopRouterRun false
:do {
:delay 60
} while=(!$stopRouterRun)
EL DONCITO.
:global stopRouterRun false
:do {
:delay 60
} while=(!$stopRouterRun)
So if stopRouterRun in your case was defined and assigned as value like "false" elsewhere. You can just remove the assignment in your code above:Every variable, except for built-in RouterOS variables, must be declared before usage by local or global keywords. Undefined variables will be marked as undefined and will result in a compilation error.
:global stopRouterRun
:do {
:delay 60
} while=(!$stopRouterRun)
:global stopRouterRun
:put $stopRouterRun
:do {
:delay 60
} while=(!$stopRouterRun)