Skip to main content
Home
ComScript Manual

Search form

Main menu

  • Home
  • collect

You are here

Home » ComScript Manual » Commands » Loops and Conditional Expressions
  • ComScript Manual
    • What is ComScript
    • Profiles
    • Device and Connection Types
    • Commands
      • Profile setup
      • Device Communication
      • Data Parsing and Testing
      • Email and File Transfer
      • File Handling Operations
      • File Read and Write
      • General
      • Hex and Decimal Conversion
      • Loops and Conditional Expressions
        • break
        • if/else
        • switch
        • while
      • Math
      • Time, Date and Timing
      • Variables
    • Profile Editor
    • Variables
    • Data Parsing
    • Data Interface
    • Arrays
    • Binary and Hex Comms
    • Timing and Intervals
    • Execution speed
    • Terminal Emulator
    • Support

break

break

Breaks out of the inner-most loop of the executing script

Example:

<while condition="[tempdata] = 1 " >
   .....
   .....
   <if condition="[temperature] > 99" >
       <log message="temperature over 99, exiting loop" />
       <break/>
   </if>
   ....
</while>
‹ Loops and Conditional Expressions up if/else ›
Powered by Drupal