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 revisionPrevious revision
Next revisionBoth sides next revision
cookbooks:5.3.x:pseudovariables [2020/04/02 19:35] – [$xavp(id) - XAVPs] micondacookbooks:5.3.x:pseudovariables [2020/04/02 19:37] – [$xavp(id) - XAVPs] miconda
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")]) +# add new item (example => [(lastname = "Doe")]) 
-$xavp(example=>name)="two";+$xavp(example=>name)="Doe";
  
 # add another named value to the last example item # add another named value to the last example item
-#   (example => [(value="John"), (name = "one")]) +#   (example => [(firstname="John"), (lastname = "Doe")]) 
-$xavp(example[0]=>value)="John";+$xavp(example[0]=>firstname)="John";
  
 # add another named value to first example item # add another named value to first example item
-#   (example => [(value="Ana"), (name = "one")]) +#   (example => [(firstname="Alice"), (lastname = "Smith")]) 
-xavp(example[1]=>value)="Anna";+xavp(example[1]=>firstname)="Alice";
 </code> </code>
  
cookbooks/5.3.x/pseudovariables.txt · Last modified: 2020/04/06 16:09 by pojogas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki