diff --git a/content/docs/latest/templating/mockoon-variables-helpers.md b/content/docs/latest/templating/mockoon-variables-helpers.md index c6455f16..c61d9924 100644 --- a/content/docs/latest/templating/mockoon-variables-helpers.md +++ b/content/docs/latest/templating/mockoon-variables-helpers.md @@ -106,6 +106,7 @@ Get a global variable's value set with [`setGlobalVar`](#setglobalvar). Global v | ------------------- | ------ | -------------------------- | | 0 | string | Variable name | | 1 | string | Path to the value property | +| 2 | string | Default value | **Examples** @@ -127,6 +128,12 @@ Get a global variable's value set with [`setGlobalVar`](#setglobalvar). Global v {{{stringify (getGlobalVar 'varName')}}} + + +{{getGlobalVar 'varName' 'path.to.property' 'default value'}} + + +{{getGlobalVar 'varName' null 'default value'}} ``` ## getEnvVar