Generates IF statements

If statements of any kind are now correctly generated.