diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-25 21:56:45 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-25 23:04:48 +0100 |
commit | 8212bd6c95935f02335d7d774bd3115a2c071fb1 (patch) | |
tree | 7edf97b5ebc0675d42d7e31943603080dc417d5d | |
parent | ba39c29648282159082dfa999ec40c7fc84b0e3c (diff) |
global-functions: $ParseKeyValueStore: properly return boolean values
-rw-r--r-- | global-functions.rsc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/global-functions.rsc b/global-functions.rsc index b212d3a..766e8a2 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -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; |