join if statement