某些时候,我们需要显式地指出在某些条件下不执行任何动作,空语句(null)可以达到这个目的。 例如: Procedure ModTwo(x: inout Integer) begin case x when 1 | 0 => null; --当x等于1或0时,没有动作。 when others => x := x mod 2; --其他情况下以2为模。 end case; end ModTwo;