mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-02 09:15:03 +02:00
global-functions: $ParseKeyValueStore: properly return boolean values
This commit is contained in:
parent
ba39c29648
commit
8212bd6c95
1 changed files with 2 additions and 0 deletions
|
@ -927,6 +927,8 @@
|
|||
:if ([ :find $KeyValue "=" ]) do={
|
||||
:local Key [ :pick $KeyValue 0 [ :find $KeyValue "=" ] ];
|
||||
:local Value [ :pick $KeyValue ([ :find $KeyValue "=" ] + 1) [ :len $KeyValue ] ];
|
||||
:if ($Value="true") do={ :set Value true; }
|
||||
:if ($Value="false") do={ :set Value false; }
|
||||
:set ($Result->$Key) $Value;
|
||||
} else={
|
||||
:set ($Result->$KeyValue) true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue