while n_TokenDate // integer !!!
while EvalToken(n_TokenDate, 'm') // string !!!
Note, however, that what follows the reserved word while can be a complex expression, as long as its result is boolean.
nCurDate = n_TokenDate
while EvalToken(nCurDate,'[m]') == '1'
In the above example, the loop runs until the evaluation of the token [m] on that date no longer translates into the string '1' (ie. it is no longer in January).