# Line formats

There are four kinds of line formats for macro files. Any line can contain a comment which begins with a ";" character. Also, a user can use the C language style comment(/* - */).
Comments give no effect on the execution of MACRO.
One line can contain up to 500 characters. The part that exceeded 500 characters is ignored.

## 1) Empty lines

Lines which have no character or contain only space or tab characters or a comment. They give no effect on the execution of the macro.

    Example:
        ; Tera Term Language

    Example:
        showtt 0
        MessageBox 'message 1' 'title 1'
        /* This is 'comment' "string"
        */ MessageBox 'message 2' 'title 2'
        closett

## 2) Command lines

Lines containing a single command with parameters.

    Format:
        <command> <parameter> ...

    Example:
        connect'myhost'
        wait 'OK' 'ERROR'
        if result=2 goto error
        sendln 'cat'
        pause A*10
        end

## 3) Assignment lines

Lines which contain an assignment statement.

    Format:
        <Variable> = <Value (constant, variable, expression)>

    Example:
        A = 33
        B = C            C must already have a value.
        VAL = I*(I+1)
        A=B=C            The value of B=C (0 for false, 1 for true) is assigned to A.
        Error=0<J
        Username='MYNAME'

## 4) Label lines

Lines which begin with a ':' character followed by a label identifier.

    Format:
        :<Label>

    Example:
        :dial
        :100