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

Exit Instruction

You can stop script execution at any time.

Exit

Example

Main
{
    Loop( 100 )
    {
          Send TX_PACKET
    }
    
# Stop script execution after sending 100 packets.
    Exit
    
Send TX_PACKET# Note: This instruction will not execute.
}

While_Condition Instruction

You can run some instructions in a loop while a condition is true.

Main
{
  ConditionRegisterWMRxHdr ( HDR_COND )
    {
      # Header Mask/Match
      PLCP
        {
          DestAddr = 0xAABB
          SrcAddr  = 0xBEEF
        }
    }
  While_Condition( HDR_COND )
    {
      Send TX_FRAME
      Send TX_FRAME
    }
}