Migrate the IF statement