there is no way it will ignore an if.
you can do after the if line:
"yes, it is mapped"

and add else statement after the addprinter:
else
"no, it wasn't"

and after endif just do:
? " pause, what's the result" get $

this way you shall see, the code will do as expected.
_________________________
!

download KiXnet