Tyl Programming Language
▶ FUNCTION BREAK STATEMENT
Function break statements are used when the execution of the enclosing function needs to be stopped immediately.

To make a function break statement, write:
%%
Tyl symbolizer will replace the double percent code: '%%', with: '✖✖', the function break symbol:
✖✖
Function break statement must be written in its own line (except for one-line statements)!

Consider this program:
main »
 num 6
 divisor 0
✖✖
 num // divisor
print num
The invalid division-by-zero line: 'num // divisor', and all lines thereafter, will not be executed since the function-break line: '✖✖', will cause the system to stop executing the main function.

Say we have a divide_by function:
divide_by num divisor »
num // divisor
We activate it in main function:
main »
 num 6
divide_by num 2
All divisions by non-zero divisors will be fine. But to ensure code integrity, we need to handle also the zero divisor case.

We add ok parameter to divide-by function:
main »
 num 6
divide_by ok num 2

not ok ?
  print 'Wrong division operation!'
  
  ≡ division operation went successfully,
  ≡ continue function execution safely...


divide_by ok num divisor »
ok

 divisor 0 ?
  ok
  ✖✖


num // divisor
In divide_by function, the zero-divisor check statement, that starts with: 'divisor 0 ?', will turn off the ok flag, and will opt out of the function. If divisor is not zero, division is done. Finally, in main function, ok will indicate if division went successfully, and code execution can be continued further.