To check if a dialog is created you can use:

if (!$dialog(dialog)) { do stuff }

any command to do the same check on a @window ?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }