Finalized the generation of code for IF blocks