Hi jonnyfolk,
There is nothing wrong with putting a while in an if statement. The problem you have is a syntax error. Change
while (<FILE)> { to while (<FILE>) {
Notice the order of the brackets
Hope this helps
thinker
In reply to Re: Using loops inside an 'if' statement
by thinker
in thread Using loops inside an 'if' statement
by jonnyfolk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |