case..of statement | Boolean



Differents ways to perform case..of statement | Boolean
Pas2JS pascal source code
BEGIN case (1=1) of True : WriteLn('T'); False : WriteLn('F'); end; case (1=1) of False : WriteLn('F'); True : WriteLn('T'); end; case (1=1) of True : WriteLn('T'); else WriteLn('F'); end; case (1=1) of False : WriteLn('F'); else WriteLn('T'); end; { ### CONSOLE OUTPUTS ### T T T T }