@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.
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
lol HAVE A GREAT DAY
LeCoLe313 1 week ago
Why does it seem like the {} are needed in random spots to me. I just dont understand what they do
2112mbell 5 months ago
@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.
nmbpeterv 2 months ago
@nmbpeterv let me correct that :o if { ... code executed if the statement is true } else { ... code executed if the statement is false }
nmbpeterv 2 months ago
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
2nd comment:D
The3DMachine 6 months ago
yayaaya good
BtappinHD 6 months ago