Code: Show/Hide } if (c->check("fgpic1")) { sendPrivate(p, "*objon 1"); } else if (c->check("fgpicoff")) { sendPrivate(p, "*objoff 1"); } if (c->check("fgpic2")) { sendPrivate(p, "*objon 2"); } |
Code: Show/Hide if (c->check("fgpic1"))
sendPrivate(p, "*objon 1"); else if (c->check("fgpicoff")) sendPrivate(p, "*objoff 1"); if (c->check("fgpic2")) sendPrivate(p, "*objon 2"); |
Mr Ekted wrote: | |
How about decent formatting (ie ekted style):
|
Code: Show/Hide if (c->check("fgpic1")) { sendPrivate(p, "*objon 1"); } else if (c->check("fgpicoff")) { sendPrivate(p, "*objoff 1"); } if (c->check("fgpic2")) { sendPrivate(p, "*objon 2"); } |
Mr Ekted wrote: |
Your way is gay. My way is perfect. ![]() |
Donkano wrote: |
In your own little world I bet it is. But to others around you (like myself and Bak) it isn't. |
Code: Show/Hide if (c->check("fgpic1")) { sendPrivate(p, "*objon 1"); } else if (c->check("fgpicoff")) { sendPrivate(p, "*objoff 1"); } if (c->check("fgpic2")) { sendPrivate(p, "*objon 2"); } |
Code: Show/Hide if (...)
single-line-statement; else { multi; line; statement; } |
Mr Ekted wrote: |
Most people code like they do because it's the way they were taught, not what makes sense. It's just like religion. People are sheep. |
Code: Show/Hide if (c->check("fgpic1")) { sendPrivate(p, "*objon 1"); } else if (c->check("fgpicoff")) { sendPrivate(p, "*objoff 1"); } if (c->check("fgpic2")) { sendPrivate(p, "*objon 2"); } |
CypherJF wrote: |
interesting; i agree with most of that, 'cept the method/function body not being indented. |