Search:

Type: Posts; User: GregBrannon

Search: Search took 0.10 seconds.

  1. Re: Questions about if statements and if-else statements

    Chained if statements in which only one of the statements can be correct should include 'else'. What you've written is very similar to a switch statement with no breaks and a default result.

    Over...
  2. Re: Questions about if statements and if-else statements

    The reason the problem was presented without the brackets was to test your understanding and suck you into making the mistake you made. The results are exactly the same. You can answer your...
  3. Re: Questions about if statements and if-else statements

    Welcome to the forum! Please read this topic to learn how to post code correctly and other useful info for new members.

    Not exactly. In this case, the next if statement is only executed if the...
Results 1 to 3 of 3