instead of "goto end" you can use "return" to escape from the script without going any further. Example:

[code]

on join...... {
if (nick1 isin $nick) return
if (nick2 isin $nick) return
if (nick3 isin $nick) return

ban -k .....
}