Browse Source

cookbooks/devel/pseudovariables: docs for $envn(name)

Daniel-Constantin Mierla 6 months ago
parent
commit
1e1c5f3e51
1 changed files with 10 additions and 0 deletions
  1. 10 0
      docs/cookbooks/devel/pseudovariables.md

+ 10 - 0
docs/cookbooks/devel/pseudovariables.md

@@ -1003,6 +1003,16 @@ Example:
 xdbg("PATH environment variable:  $env(PATH)\n");
 ```
 
+## $envn(NAME) - environment variables as number
+
+**$envn(NAME)** - value-as-number of the environment variable named NAME
+
+Example:
+
+``` c
+xdbg("COUNT environment variable:  $envn(COUNT)\n");
+```
+
 ## $avp(id) - AVPs
 
 **$avp(id)** - the value of the AVP identified by 'id'.