我有一段程序,我试图转换它以获得每个寄存器的不同输出。如果它是寄存器#5,那么我希望它打印 THEN TEXT,如果它不是 #5,则打印 ELSE TEXT。它工作了一半,但似乎当我从寄存器 1 打印“X-Report”时,它显示“Store A XStore A ZStore A ZZ ...”,如果我从寄存器 5 打印,它似乎显示“X ReportZ ReportZZ Report.. .' 我认为一旦它到达 IF 语句的末尾,它就会停止寻找打印更多信息。这是我的代码的副本:
<TABLE>
<FONT> "Large" </FONT>
<BORDER> tball </BORDER>
<COLUMNHEADER>
<ALIGNMENT> "^~" </ALIGNMENT>
<WIDTH> PageWidth </WIDTH>
<IF>
<CONDITION> (Register.Number = 5 & Transaction.Type = transactionXReport) </CONDITION>
<THEN>
<TEXT> "X REPORT" </TEXT>
</THEN>
<ELSE>
<TEXT> "STORE A X" </TEXT>
</ELSE>
</IF>
<IF>
<CONDITION> (Register.Number = 5 & Transaction.Type = transactionZReport) </CONDITION>
<THEN>
<TEXT> "Z REPORT" </TEXT>
</THEN>
<ELSE>
<TEXT> "STORE A Z" </TEXT>
</ELSE>
</IF>
<IF>
<CONDITION> (Register.Number = 5 & Transaction.Type = transactionZZReport) </CONDITION>
<THEN>
<TEXT> "ZZ REPORT" </TEXT>
</THEN>
<ELSE>
<TEXT> "STORE A ZZ" </TEXT>
</ELSE>
</IF>
<IF>
<CONDITION> (Register.Number = 5 & Transaction.Type = transactionXReport) </CONDITION>
<THEN>
<TEXT> "BLIND REPORT" </TEXT>
</THEN>
<ELSE>
<TEXT> "STORE A BLIND" </TEXT>
</ELSE>
</IF>
</COLUMNHEADER>
</TABLE>