If the section of code is inside the while loop, then use a boolean oneTime switch in an if statement
Define the boolean variable as true outside the loop. The inside the loop:
if (oneTime) {...
Type: Posts; User: Norm
If the section of code is inside the while loop, then use a boolean oneTime switch in an if statement
Define the boolean variable as true outside the loop. The inside the loop:
if (oneTime) {...
Remove the while(true) { and ending } and the code will only execute once.
Do you know about the break statement?