Expand if block