part 3: evaluating complex expressions

implement if statement