For the complete documentation index, see llms.txt. This page is also available as Markdown.

string.confirm

Description

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.

Parameters

  • prompt - text displayed in the confirmation dialog.

Usage On Strings

answer = "Are you sure you want to quit?".confirm()

if answer (
  log "User accepted"  
)

Last updated