Add new comment
Do you like HowtoForge? Please consider supporting us by becoming 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
11 hours 9 min ago
16 hours 57 min ago
18 hours 48 min ago
20 hours 33 min ago
1 day 23 min ago
1 day 6 hours ago
1 day 6 hours ago
1 day 10 hours ago
1 day 16 hours ago
1 day 21 hours ago