Syntax
interrupt (expression)
Description
The interrupt function enables interrupts if the value of expression is true (non-zero), or disables interrupts otherwise. Interrupt returns the previous interrupt state (yes if interrupts were enabled, no otherwise).
Example
if interrupt ("yes") = "yes"
echo "interrupt status already yes"
else
echo "interrupt status now yes, was no"
endif