handle the if condition of if_statement()