Added: 6 months ago
From: BrandonioProductions
Views: 1,461
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (10)

Sign In or Sign Up now to post a comment!
  • lol HAVE A GREAT DAY

  • Why does it seem like the {} are needed in random spots to me. I just dont understand what they do

  • @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 let me correct that :o if { ... code executed if the statement is true } else { ... code executed if the statement is false }

  • 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 You can simply call the main again, or create a seperate method for each question. See part 4 for more details!

  • @BrandonioProductions or create a recursive function following an index to grab the questions from an array ^^

  • @nmbpeterv Oh, good call.

  • 2nd comment:D

  • yayaaya good

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more