Edgar,

The way you try to handle the return values is not the advised, documented way to do it. Read the documentation for phmPromptUpdateCallback.