Logical expressions
boolean OnProbation, OutOfSchool, BackInSchool;
/* if OnProbation and GPA < 2.0 then OutOf School is TRUE else OutOfSchool is FALSE*/
/* if OnProbation and GPA >= 2.0 then BackInSchool is TRUE else BackInSchool is FALSE*/
OutOfSchool = OnProbation && (GPA < 2.0);
BackInSchool = OnProbation && ( GPA >= 2.0);
/*Actually OutOfSchool is the negation of BackInSchool */