Add new comment
Want to support HowtoForge? Become a subscriber!
|
there is a confusion among a few about the following example, if(condition) the above code doesn’t mean that the second line will never be executed. One should interpret this example with context to my explanation of IF statement before this example. I have not posted exact code but it’s kinda pseudo code to explain that if you are not making block of code using braces for your IF statement then the first line after IF will be executed as the part of IF statement and the lines following will not be executed as the part of IF though the control will go to them. therefore to execute more than one line as part of IF statement you should use braces to make block of code.
Reply |



Recent comments
19 hours 13 min ago
1 day 2 min ago
1 day 4 hours ago
1 day 7 hours ago
1 day 7 hours ago
1 day 7 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 14 hours ago
1 day 21 hours ago