Hi Khaled,

Thank you for adding my suggestion.

However, I'd like to see if this is a bug or the intended behavior. When I have the "optional" condition for the edit box, and if I don't type anything and click OK, it's normal for the identifier $did(name,id) to return the text (optional).

Example:

[Linked Image from i.ibb.co]


Code
dialog version {
  title "Version"
  size -1 -1 306 155
  edit "Enter the server or nickname:", 1, 10 12 290 60
  edit "NOTE: If empty it will query the current server.", 2, 10 71 270 16, disable
  edit "", 3, 8 92 290 22, autohs optional
  button "&OK", 4, 142 124 76 23, ok
  button "&Cancel", 5, 223 124 76 23, cancel
}
on *:dialog:version:{
  if ($devent == sclick) && ($did == 4) { .raw version $did(3) }
}

Return: ".raw version (optional)"

The only solution I see is to put $remove($did(name,id),(optional)) in the command.

Example:
Code
.raw version $remove($did(3),(optional))



TECO
irc.PTirc.org (Co-Admin)