The script is behaving the way it should do, but I'm not exactly sure why!
I've added some BLANK comments into the script that attempt to explain what I intended to happen.
Can anyone shed any light on whether this is actually correct, a bug or a feature in Regnus?
Code: Select all
GROUP ReferenceExample
BLANK The experiment here was to try nesting groups of ToolTypes to have one of the PowerTools or one of the ManualTools selected.
BLANK #+Tools; selects a PowerTools entry or a ManualTools entry.
BLANK #+SelectType; selects one of the Animals or a Tool type which, in turn selects one of the PowerTools or one of the ManualTools.
ENTRY <Example>I have a #+ToolTypes; and a #+SelectType;.
GROUP SelectType
BLANK The entry below was originally #+ToolTypes; but that caused errors.
BLANK Is ##ToolTypes; correct here? Why does it return a PowerTools or ManualTools entry?
BLANK I would have expected it to return exactly the text "PowerTools" or "ManualTools".
BLANK What is actually happening here and why? What, if anything, is recursing and why?
ENTRY ##ToolTypes;
ENTRY Animals
GROUP ToolTypes
ENTRY PowerTools
ENTRY ManualTools
GROUP PowerTools
ENTRY drill
ENTRY glue gun
ENTRY sander
GROUP ManualTools
ENTRY hammer
ENTRY nail
ENTRY saw
GROUP Animals
ENTRY cat
ENTRY badger
ENTRY dog