Visible

Forms Developer Guides Scripting Interface Modal

TOGGLE()

var modal = Modal.new();

modal.show();
modal.visible() == true;

modal.hide();
modal.visible() == false;

Checks whether the modal is visible or hidden from the user.