Torque generally typecasts for you, so don't worry about it. Just define the variables with % for local and $ for global (i.e. %var=1; or $globalvar=1;)
if(condition)
{
// do something
}
else if(condition)
{
// do something
}
else
{
// do something
}
bottomPrint(GameConnection,String,Float);
$Server::BrickCount