I was wondering if it's possible to have a script ask a question and then based on the answer pull several lines of text into the currently running script before continuing on.
an example would be something like:
Proc main
transmit "set id `"Metrocom`^M"
waitfor ">"
transmit "connect a:1:1-8 1:1-8^M"
waitfor ">"
transmit "connect a:1:17-24 6:1:1^M"
waitfor ">"
at this point I would like the script to ask:
"Are there any DID's?"
if the answer is yes I would like the script to call up a text file that enters the following:
If the answer is no it should continue on without calling the alternate section of text.
transmit "set a:1:9-16 signal emi^M"
waitfor ">"
transmit "set 4:1-8 signal dpt^M"
waitfor ">"
transmit "connect a:1:9-16 4:1-8^M"
then when that is done it would continue on or do the same thing at another point with another question and result.
The above additional text would more than likely be a text file to upload or read all lines from.
Thanks in advance for any help...
an example would be something like:
Proc main
transmit "set id `"Metrocom`^M"
waitfor ">"
transmit "connect a:1:1-8 1:1-8^M"
waitfor ">"
transmit "connect a:1:17-24 6:1:1^M"
waitfor ">"
at this point I would like the script to ask:
"Are there any DID's?"
if the answer is yes I would like the script to call up a text file that enters the following:
If the answer is no it should continue on without calling the alternate section of text.
transmit "set a:1:9-16 signal emi^M"
waitfor ">"
transmit "set 4:1-8 signal dpt^M"
waitfor ">"
transmit "connect a:1:9-16 4:1-8^M"
then when that is done it would continue on or do the same thing at another point with another question and result.
The above additional text would more than likely be a text file to upload or read all lines from.
Thanks in advance for any help...