I'm trying to conditionally check a variable and iterate through a while loop, but I've not been able to get it. Here is the snippet.
if(bla==""){
//Processing something
} else {
while(bla==""){
//iterating variable 'bla' till it becomes ""(blank)
//Processing something
}
}
First I check if a variable bla is blank and then do the processing. Otherwise I iterate the variable bla until it becomes blank in the while condition, and then do the same processing.
How can it be done?
while(bla=="")will loop while it is an empty string, not until it becomes one.while(bla!=="")blais not blank