Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
en:create:variables [29.04.2021 20:18] – [Use Variables Continuously] sophia.schaueren:create:variables [29.04.2021 20:58] (current) admin
Line 176: Line 176:
 <code php> <code php>
 $items = random_items('AB01'); // randomized order of items in question AB01 $items = random_items('AB01'); // randomized order of items in question AB01
-registerVariable('$items');+registerVariable($items);
 question('AB01', $items);  // ask question with randomized items question('AB01', $items);  // ask question with randomized items
 </code> </code>
en/create/variables.txt · Last modified: 29.04.2021 20:58 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki