Here's a sample script to give an idea of the syntax. It's based on C but there are a few differences.

Code:
function overloaded_func ( string x )
{
     Print ( "My string is" );
     Print ( x );
}

function overloaded_func ( int x )
{
     Print ( "My integer is" );
     Print ( x );
}

function AutoExec ()
{
    if ( ( 3 < 4 ) && ( 3 + 9 == 24 / 2 ) )
        overloaded_func ( 99 );

    else
        Print ( "We shouldn't be here." );
}