I have an array of options. I want the user to indicate one of those options as preferred. I'll use that later in the program.
Here's simple demo passages to show what i mean:
<<set $names to ["mike", "matt", "dave", "bill"]>>
<<set $nameIndex to "not set">>
<<for _i to 0; _i lt $names.length; _i++>>
<<print (_i + 1) + ". " + $names[_i]>>
<<radiobutton "$nameIndex" $_i>>
The result I get after choosing one of the names and going to demo2:
mike, matt, dave, bill
I'm wondering if I'm misunderstanding interactive Macros. Or perhaps there is a better way to achieve these kinds of things? This could well be a kludge -- happy to use better cookbook recipe.