<
rpre...@gmail.com> wrote in message
news:19381814.258.1334261567765.JavaMail.geo-discussion-forums@vbyz30...
Yes. Repeatedly in this group.
When the IF statement is parsed - and that's the entire logical statement,
not the physical line alone - the then-current value of any %-variable other
than a metavariable (ie loop-control variable) is substituted for the
variable. THEN the resultant statement is executed.
hence, the IF statement is executed as
IF .Ross==.Ross (
shift
echo .first
)
by substituting the value of %1 into the statement at PARSE time, not
execution time.
Similarly,
IF .Ross==.Ross (
shift
echo .%1
shift
echo .%1
)
woud show ".first" twice - same reason.