#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.
This website is saying I’m editing this post in another tab when I’m not!