Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
127 bpr 1
# 变量计算应在此文件里进行.
2
# 每次模块调用时它由wims读入与解释执行.
3
 
12810 bpr 4
!read language lang/names
127 bpr 5
!if $cmd=reply and $status!=waiting
16752 bpr 6
  error=double_reply
7
  !exit
127 bpr 8
!endif
9
 
10
!if $cmd=reply and $status=waiting
12810 bpr 11
  # 对回答的分析应该放在这里.
12
  # 以下几行只是一个模板.
127 bpr 13
 
12810 bpr 14
  !if $x>$y
15
    diagnostics=good
16
  !else
17
    diagnostics=bad
18
  !endif
127 bpr 19
 
12810 bpr 20
  status=done
21
  !if $diagnostics=good
22
    module_score=10
23
  !else
24
    module_score=0
25
  !endif
26
  wims_module_log=score $module_score/10
127 bpr 27
!endif