Nesting of if blocks