if lastkey = 'ENTER' then do

This line tests the value of the lastkey REXX variable to see how the user chose to leave the user-input window. A value of ENTER implies that a value was entered in the text input field, and if so, the macro will go on to extract the information entered in the user- input window.


Using the IF Statement in Editor Macros