Procedure #EXTENSION won't generate into a browse's ResetQueue method — %ActiveTemplateInstance doesn't resolve to the browse?

#IF( %Primary )

returns the name of the %File so can be treated like a %True or %False in the #If() statement.

From the help docs.

The key to understanding the use of the #CONTEXT structure is “as if the source code for the named section were being generated.” This statement means that the statements are evaluated as if #GENERATE were executing.

In the context of the Instance/named section, this isnt strictly true in that only a part of #Procedure will run, the whole #Procedure template still runs, so its easy to get caught in loops, trigger #Restrict/#EndRestrict & #Prepare/#EndPrepare code if not careful.


Create a #Code template which lists the builtin variables and their current value on whatever embed the #code template is placed as seen here.

This website is saying I’m editing this post in another tab when I’m not!