Dynamic variable names: Difference between revisions

(→‎{{header|Tcl}}: Another way to do this is with upvar)
Line 21:
20 KEYIN "LET "+v$+"=42"
</pre>
 
=={{header|Batch File}}==
 
@echo off
setlocal enabledelayed expansion
echo Choose between those variables:
echo.
set a=0
echo A
set b=1
echo B
set c=2
echo C
set mustard=4
echo MUSTARD
echo.
set /p choice=Which one ? :
cls
echo %%%choice%%%=!%choice%!
endlocal
pause
exit
 
{{The whole thing is in the setlocal enabledelayedexpansion}}
 
=={{header|Common Lisp}}==
Anonymous user