It can be general function, returning if script should end and test this function in loops. If function return true, script should end.
But again, PSPad can terminate script faster then the function will be handled by script in case script do some time consuming job. -- <https://forum.pspad.com/read.php?2,73475,73484> PSPad freeware editor https://www.pspad.com
