if you place any variable inside if statement like if(a) , then the body under if statement will execute till the variable is positive if a becomes zero or negative then the condition will be false.
same you can infer for other numbers too, till they hold the truth value the sub codewill be executed.