added logical operator to personal conditions calculator