User Tools

Site Tools


cookbooks:5.3.x: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:5.3.x:pseudovariables [2020/04/02 21:32]
miconda [$xavp(id) - XAVPs]
cookbooks:5.3.x:pseudovariables [2020/04/02 21:37]
miconda [$xavp(id) - XAVPs]
Line 751: Line 751:
  
 <code c> <code c>
-# new item (example => (name = "one")) +# new item (example => [(lastname = "Smith")]
-$xavp(example=>name)="one"; +$xavp(example=>lastname)="Smith"; 
-# add new item (example => (name = "two")) + 
-$xavp(example=>name)="two";+# add new item (example => [(lastname = "Doe")]
 +$xavp(example=>name)="Doe"; 
 # add another named value to the last example item # add another named value to the last example item
-$xavp(example[0]=>value)="John";+#   (example => [(firstname="John"), (lastname = "Doe")]) 
 +$xavp(example[0]=>firstname)="John"; 
 # add another named value to first example item # add another named value to first example item
-xavp(example[1]=>value)="Anna";+#   (example => [(firstname="Alice"), (lastname = "Smith")]) 
 +xavp(example[1]=>firstname)="Alice";
 </code> </code>
  
cookbooks/5.3.x/pseudovariables.txt · Last modified: 2020/04/06 18:09 by pojogas