Commit 5b3cd46d authored by Ubbo Veentjer's avatar Ubbo Veentjer
Browse files

add a module-get method with default value

parent 39a4a0e5
......@@ -47,3 +47,12 @@ declare function fconfig:module-get($module-name as xs:string, $key as xs:string
return
$module/param[ string(@key)=$key ]/node()
};
declare function fconfig:module-get($module-name as xs:string, $key as xs:string, $default as item()?) as item()? {
let $value := fconfig:module-get($module-name , $key)
let $b := console:log($value)
return if (empty($value)) then
$default
else
$value
};
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment