User Tools

Site Tools


cookbooks:devel:pseudovariables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
cookbooks:devel:pseudovariables [2020/01/22 15:43]
miconda
cookbooks:devel:pseudovariables [2020/04/01 15:44]
miconda [$xavp(id) - XAVPs]
Line 639: Line 639:
 **$env(NAME)** - value of the environment variable named NAME **$env(NAME)** - value of the environment variable named NAME
  
 +Example:
 +
 +<code c>
 +xdbg("PATH environment variable:  $env(PATH)\n");
 +</code>
 ===== $avp(id) - AVPs ===== ===== $avp(id) - AVPs =====
  
Line 754: Line 759:
  
 xavps are read and write variables. You can create multilevel xavps, as xavps may contain xavps. xavps are read and write variables. You can create multilevel xavps, as xavps may contain xavps.
 +
 +===== $xavu(id) - XAVUs =====
 +
 +Similar to XAVPs, but with single value items, therefore there are no indexes in the naming format. XAVUs are also stored in transaction context and destroyed when the transaction is terminated.
 +
 +Examples:
 +
 +<code c>
 +$xavu(x) = 123; # <- set the value
 +$xavu(x) = 234; # <- update to the value, not adding to a list like for xavps
 +$xavu(x) = $null; # <- delete the xavu
 +$xavu(a=>b) = "xyz"; # <- two level naming supported
 +</code>
  
 ===== $hdr(name) - Headers ===== ===== $hdr(name) - Headers =====
cookbooks/devel/pseudovariables.txt ยท Last modified: 2022/04/11 15:24 by henningw