I guess it's a personal preference, but while(i == 1) seems fine to me. In fact I would say it's better than just while(i) because it makes it clear that 1 is the only value it should continue for.
...
Type: Posts; User: KevinWorkman
I guess it's a personal preference, but while(i == 1) seems fine to me. In fact I would say it's better than just while(i) because it makes it clear that 1 is the only value it should continue for.
...
A boolean expression can be expressed like this:
i==0
i<76
i!=17
etc.
These evaluate to a boolean value (true or false). You can use boolean values in things like if statements and while...