if( confirm("Would you like to select a file?") ) { string filePath = choose("Please select a file", "./"); print("Selected file = " + filePath); }