string.confirm
Last updated
confirm displays a confirmation dialog to the user and pauses execution until the user answers yes or no. It returns the user's response as a boolean.
prompt - text displayed in the confirmation dialog.
answer = "Are you sure you want to quit?".confirm()
if answer (
log "User accepted"
)Last updated