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).
if interrupt ("yes") = "yes"
echo "interrupt status already yes"
echo "interrupt status now yes, was no"