ok, I made fully working script for just strings and it says: undefined variable even though the first line defines the variable as 0

have you tested your script?
_________________________
!

download KiXnet