29 May
2024
29 May
'24
12:48 p.m.
On 29 May 2024, at 14:05, ai2472206007@yeah.net wrote:
I'm defining a command to generate options for multiple choice questions, but at the moment I'm stuck at this step. I want to get a number and assign a value to the counter, but why can't I get it?
%%%% \starttext \definedataset [myset] \setdataset [myset] [foo=1,boo=4] \newcount\tempa \datasetvariable{myset}{1}{boo} % definitely get 4 %\tempa=\datasetvariable{myset}{1}{boo} % why i cannt pass 4 to tempa? %\number\tempa \stoptext
Works for me (minus comment signs of course): ConTeXt ver: 2024.03.11 09:34 LMTX Best wishes, Taco