Added tatic method in class Condition to check while / if boolean statements.