1,445
Loading...
Uploader Comments (BrandonioProductions)
see all
All Comments (10)
-
lol HAVE A GREAT DAY
-
@nmbpeterv let me correct that :o if { ... code executed if the statement is true } else { ... code executed if the statement is false }
-
@2112mbell The { and } are used to define an enclosed block of code. For example to follow the line of this tutorial you could say that if { ... code executed if the statement is true } else { ... code executed if the statement is true }. If the { and } are not placed ^^ there is no way of knowing where a certain statement ends.
-
Why does it seem like the {} are needed in random spots to me. I just dont understand what they do
-
2nd comment:D
-
yayaaya good
Loading...
I have a question
I made a question like thingy and am wondering how to get the else part to go back to the question
like if they didn't put anything in when the answered my question or they didn't put one of the choices. I want it to go back to the question without continuing
andavies123 5 months ago
@andavies123 You can simply call the main again, or create a seperate method for each question. See part 4 for more details!
BrandonioProductions 5 months ago
@BrandonioProductions or create a recursive function following an index to grab the questions from an array ^^
nmbpeterv 2 months ago
@nmbpeterv Oh, good call.
BrandonioProductions 2 months ago