RoCk tx for your reply
I added this line to the script:
echo $chan $nick $eval($+(%,txt,$nick ),2)
and I found that when the Scripts Editor is open and the tab "Variables" is on top, temporary variables are not unset. As soon as you change tab the unsetting restarts.