Skip to main content
Question

Custom variables - What is the priority / order they are applied?

  • April 13, 2026
  • 2 replies
  • 26 views

Forum|alt.badge.img

When using Custom Variables, what is the order they are applied, or priority?

If I have 2 variable states that are fighting each other, which one wins? 
Can that order be modified?

For example, my first variable shows heading_1 when true, but my second variable hides heading_1 when true. Who wins? Can I decide?

What about Selected Package, and Active Offer, do they take precedence?

There doesn’t seem to be a way in the Editor right now to preview more than one variable or selected package or active offer at a time. That would be very useful, if not essential.

2 replies

Forum|alt.badge.img
  • Author
  • New Member
  • April 14, 2026

I realised I’m referring to Rules, more than only Custom Variables. Priority of different Rules.



As a related question, how do the ‘Case’ inside each rule work? Do they ‘break;’ if one case is matched?
Let’s say I have 5 cases in my rule. 
First one is, if ‘my_custom_variable’ is not ‘’ .  (So if my variable is not empty) I want to hide a bunch of layers.
Then the 4 others are if ‘my_custom_variable’ is ‘feature_1’, ‘feature_2’, etc. I want show some layers ( image and header text ) for each feature.

Will this work? Or will the switch case break after the first one?

The way of previewing this in the Editor is one Rule and on Case at a time, suggesting this will not work.


alejandra-wetsch
RevenueCat Staff
Forum|alt.badge.img+6

Hey ​@JFBeaulieu

Thank you for reaching out and for providing a detailed explanation of what you’re trying to accomplish!

In this case, all rules will be taken into consideration. Meaning that if you have a rule set up to hide/show a layer when my_custom_variable is not empty, and then have a different rule for value ‘feature_1’, both rules will apply and will show/hide the layers, taking into consideration both.

The only recommendation would be making sure that both rules don’t contradict each other when hiding/showing layers.