Assign a boolean (True) to $xlWhole before using it in there ?
_________________________