<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>What is the preferred way to ident if statement when the condition<br></div>spams to multiple lines, ex:<br><br></div>if (cond1 &&<br></div> cond2 &&<br></div> cond3) {<br> ...<br> ...<br>}<br><br></div>or <br><br></div>if (cond1 &&<br></div> cond2 &&<br></div> cond3)<br>{<br> ...<br> ...<br></div>}<br><br></div>or if only one statement inside body<br><br></div>if (cond1 &&<br></div> cond2 &&<br></div> cond3<br> ...<br><br></div>Also, usualy, I align the remaining lines from codition to one<br></div><div>column after the parenthesis that starts the condition and usually<br></div><div>I need spaces to do that. Is that okay? With no spaces would be:<br></div><div>if (cond1 &&<br></div><div> cond2)<br>{<br> ...<br></div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><br></div><div>Regards,<br></div><div>-- <br><div class="gmail_signature"><div style="text-align:right"><i>"Do or do not. There is no try"</i><br><i> </i><i><b>Yoda Master</b></i><br></div></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>