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
en:create:filter-items [10.12.2014 11:50] adminen:create:filter-items [26.01.2015 07:11] alexander.ritter
Line 46: Line 46:
  
 for ($i=1; $i<=$number_items; $i++) { // enumerate from 1 to 6 for ($i=1; $i<=$number_items; $i++) { // enumerate from 1 to 6
-  $ID = $question.'_'.$i; // gives e.g. TF_04_1+  $id = $question.'_'.$i; // gives e.g. TF_04_1
   // Does the item have a score of at least 2?   // Does the item have a score of at least 2?
-  if (value($ID) >= 2) {+  if (value($id) >= 2) {
     $itemlist[] = $i;     $itemlist[] = $i;
   }   }
Line 97: Line 97:
  
 for ($i=1; $i<=$number_items; $i++) { for ($i=1; $i<=$number_items; $i++) {
-  $ID = $question.'_'.$i; // gives e.g. TF_04_1 +  $id = $question.'_'.$i; // gives e.g. TF_04_1 
-  if (value($ID) >= 2) {+  if (value($id) >= 2) {
     $itemlist[] = $i;     $itemlist[] = $i;
   }   }
en/create/filter-items.txt · Last modified: 19.05.2021 21:17 by sophia.schauer
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki