~ is not operator or something.
figured in some previous kixgolf tournament that one can use it as -1 in some cases.

that is, if your parameter has nothing else, NOT-inversion from nothing becomes true, which translates to -1.

and that's 1 stroke shorter than saying left($,-1) \:\)
_________________________
!

download KiXnet