Example:
string name = inputDialog("Enter your name:", "Anonymous");
if (name !is null) {
writeln("Hello, ", name);
}string inputDialog(string message, string defaultValue = null)Shows a text input dialog.
message | The prompt message |
defaultValue | Default input value (optional) |
Example:
string name = inputDialog("Enter your name:", "Anonymous");
if (name !is null) {
writeln("Hello, ", name);
}