the following code is given:
if (c2-c1==0) if ( c1 != c3 ) {...}
How to interpret this code? The first if-statement comes without {}. Is the code above equal to the following code ?:
if (c2-c1==0){ if ( c1 != c3 ) {...} }
Yes. The if statement applies to the next statement after it - which is different if in this case.
Yes they are equivalent
That's right. A room without brackets means that the only command in the first case, if another, if, which can contain everything you want.
Source: https://habr.com/ru/post/921492/More articles:two legends based on different data sets with ggplot2 - rHow to add model value to html attribute value - asp.net-mvcSelf-executing function as the value of an object property in javascript - javascriptShort syntax for javascript if statements without curly braces - javascriptManually Call TableView Cell - iosHow to prevent caching resources in chrome extension? - google-chromeResizing buttons - htmlHow to remove values ββfrom QMap? - c ++Magento - go to the Checkout menu item in the topic - phpWhy is game renderer so fast compared to rendering 3D applications? - algorithmAll Articles