Subversion Repositories wimsdev

Rev

Rev 20 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
!for t in context,result
16113 bpr 2
  !if $(ask$t)>1 and $($(t)list)!=$empty
3
    rep=!trim $(rep$t)
4
    !if $rep=$empty or $rep<1
5
      error=empty_data
6
      !exit
7
    !endif
8
    N=!itemcnt $(sh$t)
9
    rep=$[floor($rep)]
10
    !if NaN isin $rep or $rep<1 or $rep>$N
11
      error=bad_data
12
      !exit
13
    !endif
14
    !if $rep!=$(good$t)
15
      error=bad_reply
16
      !advance penalty
17
      !exit
18
    !endif
20 reyssat 19
  !endif
20
!next t