No need for the elseif, if it isn't true it's false and the return does stop further processing of the script.

on *TEXT:*Blah*:#yourchannel: {
if (%stop_script) { return }
set -u60 %stop_script 1
do stuff
}