--- title: "Variables in INPUT Prompts" type: "article" slug: "variables-in-input-prompts" url: "http://localhost/article/variables-in-input-prompts/" markdown_url: "http://localhost/article/variables-in-input-prompts.md" published_at: "2022-10-07T12:24:00+00:00" modified_at: "2026-08-09T14:27:05+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "This is not a new discovery but thecause it is not mentioned 2068 User Manual, I that it is not used as widely as it might be. Variables may be included in an INPUT prompt by enclosing the prompt in parentheses. That is, with INPUT (X); B the be the prompt will the value of…" category: - name: "CATS Newsletter" slug: "cats-newsletter" taxonomy: "category" url: "http://localhost/category/periodicals/cats-newsletter/" post_tag: - name: "Best of Timex/Sinclair 2068 Articles and Documents" slug: "ts2068best" taxonomy: "post_tag" url: "http://localhost/tag/ts2068best/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" - name: "Tutorial" slug: "tutorial" taxonomy: "post_tag" url: "http://localhost/tag/tutorial/" basic: - name: "INPUT" slug: "input" taxonomy: "basic" url: "http://localhost/basic/input/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "H. Edward Weppler" slug: "h-e-weppler" taxonomy: "indiv" url: "http://localhost/indiv/h-e-weppler/" publication_r: id: 35941 title: "CATS Newsletter" type: "periodical" url: "http://localhost/periodical/cats-newsletter/" authors: "H. E. Weppler" authors_r: - name: "H. Edward Weppler" slug: "h-e-weppler" taxonomy: "indiv" url: "http://localhost/indiv/h-e-weppler/" volume: "4" issue: "4" issues_articles: - id: 40100 title: "CATS v4 n4" type: "issue" url: "http://localhost/issue/cats-newsletter-v4-n4/" pages: "9" pubdate: "July 1986" archive_link: false --- # Variables in INPUT Prompts This is not a new discovery but thecause it is not mentioned 2068 User Manual, I that it is not used as widely as it might be. Variables may be included in an INPUT prompt by enclosing the prompt in parentheses. That is, with INPUT (X); B the be the prompt will the value of variable x and With INPUT (Y$);B it will be the string value of variable Y$. It is feasible to combine numeric and string variables, along with other characters. For example, in an accounting program the prompt might be: ``` INPUT ("#";N;" ";+A$(n);TAB 22;"$");B(N) ``` The when N=4 and when N=5 the prompts would appear as: ``` #4 INTEREST REC $C #5 DIVIDENDS REC $C ``` The amounts entered would be stored in B(4) and B(5) respectively.