Restricts nested if-else blocks to a specified depth (default = 1).