v10.50 v10.55 Alpha v10.54 Alpha v10.53 Alpha v10.52 Alpha v10.51 Alpha
v10.50 v10.55 Alpha v10.54 Alpha v10.53 Alpha v10.52 Alpha v10.51 Alpha

Structure Variable Syntax

Structure variables have a special syntax.

Example

# This syntax instructs the parser to send a packet based on 
# some structure variables, avoiding the search for templates.

Send$(Structure variable name)
[
    {
        Field = Value
        ...
    }
    ( parameter1, parameter2, ... )
]

Example

Main
{
    # Declare a structure variable based on the template 'TX_PACKET'.
$X = TX_PACKET 
    # Send a packet based on the template 'TX_PACKET' 
    # using default values.
Send $X
}

Omitting the Send Keyword

You can omit the Send keyword if needed (but this is not recommended).

Example

Main
{
    # Send a packet based on the template 'TX_PACKET' 
    # using default values.
TX_PACKET
}