1 / 11

What is a Variable?

What is a Variable?. One or more characters preceded by an “&” which, when executed, will be replaced by a saved character string. Example: &date. Kinds of Variables. Predefined &date, &tod User-defined &name. Predefined Variables. &date January 1, 2000 &day Monday &month August

janetwood
Download Presentation

What is a Variable?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. What is a Variable? • One or more characters preceded by an “&” which, when executed, will be replaced by a saved character string. • Example: &date

  2. Kinds of Variables • Predefined • &date, &tod • User-defined • &name

  3. Predefined Variables &date January 1, 2000 &day Monday &month August &year 2001 &time 2:30 pm &tod morning Say Good &tod, it is &time on &day, &date.

  4. Predefined Variables &e Emphasize &w Whisper &m Monotone &n Normal &ca Address context &ce E-mail context &r Reset speech tags say My zip is &ca 80401-1118. My phone # is 303/278-2244 Say Variables are &e way cool.

  5. Predefined Variables • &Response • Speech Recognition • Contains user’s response to your last Listen or ListenFor command

  6. User-defined Variables • Form on Tools menu • Assign in Script

  7. Script Command: Set • Format: • Set &varname=string • Examples: • Set &name=Tom • Set &place=Orlando • Set &greet=Good &tod, &name.

  8. Rules for Variable Names • Always begin with “&” • Alphanumeric characters • Case-sensitive • No spaces • No symbols except “_” (shift hyphen)

  9. Variable Form

  10. Variable Form

More Related