| Blockland Forums > Modification Help |
| Iban Explains it All |
| << < (9/39) > >> |
| lordician:
--- Quote from: indyjones on March 03, 2011, 11:00:52 PM ---Manty, make me an avatar :( --- End quote --- This isn't really the topic to ask about that. Anyhow, looks interesting, maybe i can learn a thing or two from it. :D |
| Anybody:
can you use "and" or "or" inside a "if" statement like you can use in php? ALSO: when using notepad++ which language is closest to torque? |
| Iban:
--- Quote from: Anybody on March 04, 2011, 01:27:30 PM ---can you use "and" or "or" inside a "if" statement like you can use in php? --- End quote --- Yes, but be very careful with your order of operations. if(%a && %b || %c) I'm pretty sure this equates to if( ( %a && %b) || %c) so if you wanted it to be if(%a && (%b || %c) ) You'd have to state that explicitly. I always find it better to be safe, rather than sorry, with complex ifs, so I use a liberal amount of parenthesis. (Unless you're talking about the actual "AND" and "OR" operators, in which case, no lol). --- Quote from: Anybody on March 04, 2011, 01:27:30 PM ---ALSO: when using notepad++ which language is closest to torque? --- End quote --- C# (hence .cs file extensions). |
| Treynolds416:
--- Quote from: Iban on March 03, 2011, 10:25:35 PM ---Dude, there's no semicolon after the echo. --- End quote --- I just hit myself. |
| otto-san:
--- Quote from: Treynolds416 on March 04, 2011, 03:24:27 PM ---I just hit myself. --- End quote --- :cookieMonster: |
| Navigation |
| Message Index |
| Next page |
| Previous page |