Fixed format of if/else parameters and for loops