That does not make sense. You should have got that error already oon the if line. And even if kix treats it as string, "sessiontype" does not equal your string.
_________________________
!

download KiXnet