#do while loop
1 messages · Page 1 of 1 (latest)
While you are waiting for getting help, here are some tips to improve your experience:
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.
Your if statement is empty
Instead of userInput == 1 || userInput == 2 etc you can just do if (userInput >= 1 && userInput <= 4)
should i add a continue or break
think about it
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
Closed the thread.