// This macro demonstrates how to require // that dialog box numeric entries be valid. requires("1.45g"); do { Dialog.create("Test"); Dialog.addNumber("Width:", 512); Dialog.addNumber("Height:", 512); Dialog.show(); width = Dialog.getNumber(); height = Dialog.getNumber();; } while (isNaN(width)||isNaN(height)); print(width, height);