I begin with
and what I want to accomplish is that if the command issued is
I would then subsequently treat `anything' as a numlist whereas if the command issued is
I would then subsequently treat `anything' as a varlist. The contents of `anything' will thus either be numbers or strings=varnames.
I have a clunky solution for determining whether to branch to the subsequent numlist-related or varlist-related commands but am wondering how the elegant programmers among you would handle this. I.e. what test would you apply to `anything' to determine which direction to branch.
Thanks in advance for your advice.
Code:
prog def abcd syntax anything
Code:
abcd 1 2 3
Code:
abcd v1 v2 v3
I have a clunky solution for determining whether to branch to the subsequent numlist-related or varlist-related commands but am wondering how the elegant programmers among you would handle this. I.e. what test would you apply to `anything' to determine which direction to branch.
Thanks in advance for your advice.

Comment