0
[ANSWERED]Braces
Is there any difference in writing if-sentence with or without {}?
3 Respuestas
+ 10
If you don't write the braces, it will only execute the first statement after the "if". Including them executes all of the statements within the braces.
You normally include them if you have only one statement to be executed by the if statement.
+ 2
language? also the code playground is a great place to simply test it yourself
0
@Tobi
Edited
I just can't test it for everything