Hi.
While i was checking some other threads i saw a few code snippets and they looked pretty nice and simple, but i got lost about afew things.
If you wish please help me bit with some simple code snippets.
When do i use (while) , know what i mean but i have no idea where to apply it.
What about (return) .
Thank you!
The “while” statement is used to loop while some expression evaluates to True.
It’s not very common, because most loops are used to iterate over some sequence of elements, in order to modify them, and there, the “for” statement is more convenient.
If you see a while statement used in blender, it would probably be in situations like: