Differences

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

Link to this comparison view

Both sides previous revision Previous revision
en:create:filter-items [10.12.2014 11:50]
admin
en:create:filter-items [26.01.2015 07:11] (current)
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: 26.01.2015 07:11 by alexander.ritter
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki