mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-07-30 21:21:35 +00:00
doc/mode-button: early exit with :exit
This commit is contained in:
parent
702002b89d
commit
3c5c9944bd
1 changed files with 7 additions and 5 deletions
|
|
@ -26,14 +26,16 @@ can configure the reset button to act the same, see
|
|||
|
||||
Copy this code to terminal to check:
|
||||
|
||||
:if ([ :len [ /system/routerboard/mode-button/print as-value ] ] > 0) do={
|
||||
:put "Mode button is supported.";
|
||||
} else={
|
||||
{
|
||||
:if ([ :len [ /system/routerboard/mode-button/print as-value ] ] > 0) do={
|
||||
:put "Mode button is supported.";
|
||||
:exit;
|
||||
}
|
||||
:if ([ :len [ /system/routerboard/reset-button/print as-value ] ] > 0) do={
|
||||
:put "Mode button is not supported, but reset button is.";
|
||||
} else={
|
||||
:put "Neither mode button nor reset button is supported.";
|
||||
:exit;
|
||||
}
|
||||
:put "Neither mode button nor reset button is supported.";
|
||||
}
|
||||
|
||||
Requirements and installation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue