Global variable accessible from all pages

Hi, I like your solution.
In the Export let globalVars you define varfiables that are statics. How can I define a variable that changes according to some criterias stored on the Collection for a specific logged in user?

Thank you
Pierre Lacasse