/swcad-su { if (!$dialog(SWC-AD)){ dialog -m SWC-AD SWC-AD } else if ($dialog(SWC-AD)){ echo -a Dialog already created, check if its minimized. } }