handles if statement syntaxticly