Confirm/Cancel buttons in promptcommand

When I use Prompt command, I can close message with “Cancel” button or “Confirm” button or “X” button.

When I read explanations about prompt command, I understand that it is impossible to know which button is used to close message.

So an unique button like “Ok” one seems less ambiguous.

Actually, you know which button is pressed. The input value is only returned with “Confirm”, otherwise the value is “null”

  • Cancel button => returned value = “null”
  • X icon => returned value = “null”
  • Confirm button => input value

Super. I am going to use it!