Create a dialog input window that returns a user input:
Enter a string in the field and click
Proceed to return the string:
This input puts up a dialog window and does not wait for a return value:
Typing in the dialog window dynamically changes
name but has no immediate effect on
res:
The kernel evaluates other inputs while the dialog window is open:
After the
Proceed button is clicked, the effect of
DialogReturn[res=name] can be seen:
Return different values, depending which button is clicked: