2016-05-20 8:43 GMT-03:00 Daniel Baluta :
> On Thu, May 19, 2016 at 9:07 PM, Daniel. wrote:
>> What is the preferred way to ident if statement when the condition
>> spams to multiple lines, ex:
>>
>> if (cond1 &&
>> cond2 &&
>> cond3) {
>>
On Thu, May 19, 2016 at 9:07 PM, Daniel. wrote:
> What is the preferred way to ident if statement when the condition
> spams to multiple lines, ex:
>
> if (cond1 &&
> cond2 &&
> cond3) {
> ...
> ...
> }
^ this one is preferred.
>
> or
>
> if (cond1
What is the preferred way to ident if statement when the condition
spams to multiple lines, ex:
if (cond1 &&
cond2 &&
cond3) {
...
...
}
or
if (cond1 &&
cond2 &&
cond3)
{
...
...
}
or if only one statement inside body
if (cond1 &&
cond2 &&
cond3