3. Statements : OpenROAD Language Statements : Prompt Statement : Examples—Prompt Statement
 
Share this page                  
Examples—Prompt Statement
Prompt for a report name and place the response in the answer variable:
answer = prompt 'Enter the report name: ';
Prompt the user for the department of the person whose name appears in the fname and lname fields:
answer = prompt 'Enter the department for ' + fname
+ ' ' + lname;