Generally, it is inadvisable to directly expect in if-clauses. Here are some tips to avoid these situations.