Formatted the if-statements in the snippet view