total_items

Declaration

total_items: INTEGER

Description

Total number of items in the current query.

See Also

num_correct
num_answered
database functions
Database

Example

script grade_test is
  if num_correct > 10 then
    -- passing grade
  else
    if num_answered < (total_items / 2) then
      -- answered less than half
    end
  end
end