Hello all,
I have a script which takes a telephone nummber as its only variable i.e script 01256123456.
I would like to test that the variable given is
a) populated
b) all numeric, and
c) no greater than 11 chars in length.
I can test b and c, but not a, as if the script is run without a input variable it always prompts "Enter value for 1:"
How can I stop this from happening so I can test the input variable. Is there a way?
Thanks for your help.
I have a script which takes a telephone nummber as its only variable i.e script 01256123456.
I would like to test that the variable given is
a) populated
b) all numeric, and
c) no greater than 11 chars in length.
I can test b and c, but not a, as if the script is run without a input variable it always prompts "Enter value for 1:"
How can I stop this from happening so I can test the input variable. Is there a way?
Thanks for your help.