jowjow
Well-Known Member
If Statements and While Statements are very different things in programming. I will try to explain it briefly below its differences.
Let's start with the IF statement. An IF statement checks if the instruction or expression is true or false, then runs the code. The code will be running once since it is just simply a true or false statement.
A While statement however is more like a continuous loop. It will continue to execute or run the code as long as the instruction or statement is correct.
Let's start with the IF statement. An IF statement checks if the instruction or expression is true or false, then runs the code. The code will be running once since it is just simply a true or false statement.
A While statement however is more like a continuous loop. It will continue to execute or run the code as long as the instruction or statement is correct.