Skip to main content

User Input Functions

Alert​

Displays a message box:
Syntax:     Alert("message")

Example: Alert("Simulation started")

Prompt​

Retrieves user input:
Syntax:     Prompt("message", default)

Example: age <- Prompt("Enter age", 18).Parse()

Confirm​

Gets a yes/no confirmation:
Syntax:     Confirm("message")

Example: runAdvanced <- Confirm("Enable advanced mode?")