Added in 1.9.0

$dname

Returns the name of a dialog during a on DIALOG event.

Example

on *:DIALOG:*:*:*:{
  echo -ag Name of the dialog matched is $dname
}