Curly Brackets are not mandatory in every if/else block, how ever in order to make your code more readable (i.e; easily distinguish the nested if else block of code ) you should use the curly brackets.