- May
- 13,117
- 180
Of all @EVAL's functions only (?) gcd() and lcm() require '%' on a variable name.
Code:
v:\> set num=21
v:\> echo %@eval[gcd(num 18)]
TCC: Syntax error "gcd(num 18)"
v:\> echo %@eval[lcm(num 18)]
TCC: Syntax error "lcm(num 18)"
v:\> echo %@eval[gcd(%num 18)]
3
v:\> echo %@eval[lcm(%num 18)]
126