Author Topic: WHILE or DO?  (Read 252 times)

Offline Prithak

  • Life itself is a Programming Language!
    • My Programming Language
WHILE or DO?
« on: November 12, 2018, 11:17:00 AM »
I really wanted to ask this question...

For optimization, is:

Code: QB64 [Select]

or,
Code: QB64 [Select]

???, I am guessing the while wend one...
CLS
IF computer$ = "ON" THEN
me$ = "Happy!"
ELSE
me$ = "Time To Draw!"
END IF
END

Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
Re: WHILE or DO?
« Reply #1 on: November 12, 2018, 01:31:20 PM »
There's basically no difference internally. You can choose whichever you feel looks better.

Offline Prithak

  • Life itself is a Programming Language!
    • My Programming Language
Re: WHILE or DO?
« Reply #2 on: November 13, 2018, 12:54:31 AM »
There's basically no difference internally. You can choose whichever you feel looks better.
Thanks for the help!
CLS
IF computer$ = "ON" THEN
me$ = "Happy!"
ELSE
me$ = "Time To Draw!"
END IF
END