浏览代码

Fixed syntax error

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@8103 8c9fc860-2736-0410-a75d-ab315db34111
negelef 7 年之前
父节点
当前提交
1a2111b08a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      source/Options.Mod

+ 2 - 2
source/Options.Mod

@@ -510,10 +510,10 @@ TYPE
 					options[index].timestamp := timestamp;
 					CASE options[index].type OF
 					| Flag:
-						IF (string = "yes") | (string = "on") | (string = "true") THEN
+						IF (string = "yes") OR (string = "on") OR (string = "true") THEN
 							options[index].isSet := TRUE;
 							RETURN TRUE;
-						ELSIF (string = "no") | (string = "off") | (string = "false") THEN
+						ELSIF (string = "no") OR (string = "off") OR (string = "false") THEN
 							options[index].isSet := FALSE;
 							RETURN TRUE;
 						ELSIF (error # NIL) THEN