Snippet Conditions/Variables - best practices

This forum is for all Flare issues not related to any of the other categories.
Post Reply
Psider
Propellus Maximus
Posts: 902
Joined: Wed Jul 06, 2011 1:32 am

Snippet Conditions/Variables - best practices

Post by Psider »

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?
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Snippet Conditions/Variables - best practices

Post by NorthEast »

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.
Psider
Propellus Maximus
Posts: 902
Joined: Wed Jul 06, 2011 1:32 am

Re: Snippet Conditions/Variables - best practices

Post by Psider »

Thanks for that. I think it must have been the snippet conditions I was thinking of. :)
Post Reply