Re: if block style when condition spams to multiple lines.

2016-05-20 Thread Geyslan G. Bem
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) { >>

Re: if block style when condition spams to multiple lines.

2016-05-20 Thread 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) { > ... > ... > } ^ this one is preferred. > > or > > if (cond1

if block style when condition spams to multiple lines.

2016-05-19 Thread Daniel.
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