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

0 Members and 1 Guest are viewing this topic.

Offline Prithak

  • Newbie
  • Posts: 56
  • Life itself is a Programming Language!
    • View Profile
    • 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

FellippeHeitor

  • Guest
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

  • Newbie
  • Posts: 56
  • Life itself is a Programming Language!
    • View Profile
    • 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