Replace if directive with standard @if expression.