#do while loop

1 messages · Page 1 of 1 (latest)

sudden ferryBOT
#

<@&987246399047479336> please have a look, thanks.

sudden ferryBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

hallow kindle
#

Your if statement is empty

#

Instead of userInput == 1 || userInput == 2 etc you can just do if (userInput >= 1 && userInput <= 4)

amber summit
tiny talon
#

continue will abort the current iteration and go to the next iteration

#

break will abort all iterations, ending the loop

#

@amber summit please dont create multiple copies of ur thread. one is enough

sudden ferryBOT
#

Closed the thread.