xowf::test_item::Question_manager method questions_without_minutes (public)

 <instance of xowf::test_item::Question_manager[i]> questions_without_minutes \
    [ -max_items max_items ] form_info

Defined in packages/xowf/tcl/test-item-procs.tcl

Compute the number of questions without provided time

Switches:
-max_items (optional, integer, accept empty)
Parameters:
form_info (required)

Testcases:
No testcase defined.
Source code:
set number 0
foreach title_info [:title_infos -max_items $max_items $form_info] {
  if {[dict exists $title_info minutes]} {
    set value [dict get $title_info minutes]
    if {$value eq ""} {
      set value 0
    }
    if {$value == 0} {
      incr number
    }
  }
}
return $number
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: