# break {#break}

**Parent topic:**[Programming Statements](../../Programming/ProgrammingStatements/programming_statements.md)

## Details {#details}

Terminate a loop.

## Examples {#examples}

```
def printloop(a,b){
   for(s in a:b){
       print s
       if (mod(s,10)==1)
           break
   }
};

printloop(9,15);
/* output
9
10
11
\*/

// It jumps out of the inner loop when t=11. But the outer loop continues executing, which has been executed 6 times totally.
```

