Skip to content

Conditions in IZI Automation Rules

Published: · Updated: (11 days ago)· IZI Team

A condition is a filter that decides for which clients the rule runs its actions. Without conditions the rule runs for every client who had the event. With conditions, only for clients who match; other runs get the «Skipped» status.

Conditions are set in the rule form → Create an automation rule.

Each condition has three parts:

[Variable] [Operator] [Value]

For example: Play time (sec) ≥ 36000 — the client has played 10 hours or more in the club.

Available in every rule. Statistics are per client in the club where the event happened; balances are per the client’s wallet.

VariableMeaning
Play time (sec)All the client’s play time in seconds
Sessions countNumber of the client’s sessions
Total spentAll the client’s spending
Spent (real)Spending with money from the gaming balance
Spent (bonus)Spending with bonuses
Gaming balanceCurrent gaming balance
Bonus balanceCurrent bonus balance
User groupsGroups the client belongs to
GenderGender from the client profile

Available only in rules with their event; they check the current operation, not the client’s history.

VariableEvent
Session duration (sec)Session ended
Top-up amountBalance topped up
Top-up sourceBalance topped up
Order totalPurchase made
Paid with realPurchase made
Paid with bonusesPurchase made
Tariffs paid with realPurchase made
Products paid with realPurchase made
Combos paid with realPurchase made
Refund amountRefund from balance
Assigned groupGroup assigned
Unassigned groupGroup unassigned
AgeBirthday
Days without a visitNo visits
Days without paying with bonusesBonuses not spent

What each variable means — see the triggers catalog.

Variable typeOperators
Numbers: time, amounts, balances, age, days=, ≠, >, ≥, <, ≤
User groups«Includes», «Does not include», «Is empty»
Assigned and unassigned group«Equals», «Not equals»
Top-up source«Equals», «Not equals» and a value from the list
Gender«Equals», «Not equals», «Specified», «Not specified»

The condition «Gender» ≠ «Male» is not met for clients whose gender is not specified.

Several conditions combine with AND or OR:

  • AND — all conditions must be met;
  • OR — at least one is enough.

Add group nests a group of conditions with its own operator. Example:

(Play time (sec) ≥ 36000 AND Play time (sec) < 180000)
OR
(User groups includes VIP)

The rule fires for clients with 10–50 hours or for VIP clients with any play time.

Top-up amount ≥ 500
Top-up source ≠ Cash
User groups includes VIP
Play time (sec) ≥ 36000
AND
Play time (sec) < 180000
AND
User groups does not include Silver

A full rank ladder with such conditions → Client rank ladder.

User groups does not include No bonuses

Add this condition to bonus rules to exclude an unwanted segment.

Sessions count = 1

For a welcome bonus in a rule with the «Session ended» event.

If the rule should apply to everyone, leave the conditions empty. This is fine for:

  • basic cashback on every purchase;
  • a gift for every birthday;
  • a fixed bonus for any finished session.

Frequently asked questions

What happens if I add no conditions to a rule?

The rule fires for every client who had the event. That is fine for rules like «a bonus to everyone who finished a session». Targeted scenarios — VIP only, newcomers only, large top-ups only — need conditions.

How do I check that the client is in a group?

The «User groups» variable with the «Includes» operator and the selected group. «Does not include» excludes a group, «Is empty» matches clients without groups.

Can I check the amount of a specific top-up rather than total spending?

Yes. A rule with the «Balance topped up» event has the «Top-up amount» variable — the current top-up. «Total spent» is all the client's spending over time.

How do I make a rule for the client's first session only?

Event «Session ended» and the condition «Sessions count» = 1.

Why is the play time such a large number?

«Play time (sec)» and «Session duration (sec)» are in seconds. 10 hours is 36000.

About IZI