The thing is TorqueScript isn't like C++ at all (save from curly braces marking code block).
Torque is written in C++, yes, but it uses custom scripting language. And while I'd love to have instead of it some fast script language (in terms of speed execution), like Lua, I know that this would mean rewritting all addons, so I just need to suck it and learn TorqueScript.
If/loops syntax is totally different from what I've seen. @Aware, I know this thread and I'll be using it in future, but it explains Blockland's API, not TorqueScript's syntax.