You can also use "if ($dialog(table-name))" to check if a dialog is created (open).

or you can check if not created "if (!$dialog(table-name))"
Code:
if (!$dialog(table-name)) { dialog -m table-name table-name }

This will only trigger if the dialog name dont exist.


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