Hi All,
I'm hoping to use your collective memory to track down an old post.
I seem to remember reading, in the dim, dark past, something about ensuring you set up your snippet conditions, or snippet variables, as separate sets to ensure they are never used outside snippets. But I can't remember whether the discussion was about variables or conditions. Nor am I sure my memory of the reason why is correct.
I've tried searching, but can't find anything that looks similar to what I remember.
Can anyone help?
Snippet Conditions/Variables - best practices
Re: Snippet Conditions/Variables - best practices
I put all my snippet conditions in a "SnippetConditions" set.
These conditions are only used when selecting the snippet conditions for a snippet or topic.
So when I'm working in a snippet, I can easily tell which conditions will only apply to that instance of the snippet (SnippetConditions), and any other conditions are set for the target output. This makes it easy for me to predict what's going to happen with each condition in the output.
I never use the same condition as both a snippet condition and a target condition because it can quickly get very confusing.
These conditions are only used when selecting the snippet conditions for a snippet or topic.
So when I'm working in a snippet, I can easily tell which conditions will only apply to that instance of the snippet (SnippetConditions), and any other conditions are set for the target output. This makes it easy for me to predict what's going to happen with each condition in the output.
I never use the same condition as both a snippet condition and a target condition because it can quickly get very confusing.
Re: Snippet Conditions/Variables - best practices
Thanks for that. I think it must have been the snippet conditions I was thinking of. 