Previous topic | Ada Home Page | Index

BOOLEAN type

logical test

declaration:

    pass : BOOLEAN;

assignment:

    1.    pass := TRUE;


    2.    if mark >= 50 then
              pass := TRUE;
          else
              pass := FALSE:
          end if;


    3.    pass := mark >= 50;


Previous topic | Ada Home Page | Index
c-lokan@adfa.oz.au / 12 Feb 96