FairBot

User variables

A user variable is a named value that your rules keep for later: the odds at which a bet was placed, a selection picked by one rule and used by another, a counter shared by several markets.

Set a variable

Use one of the Set Variable actions:

  • Set Variable (Market Expression) stores either the result of a market expression or a selection (Variable Type \ Value: Expression or Selection).
  • Set Variable (Selection Expression) stores the result of a selection expression for the selection you choose.

Give the variable a name (Variable Identifier) that starts with a letter or underscore and contains only letters, digits and underscores, and choose its Variable Scope.

Scopes: where a variable is visible

Scope The variable is available in
Market Only the market where it was set.
Event All markets of the same event, such as every market of one football match.
Sport All markets of the same sport.
Global Every market.

If variables with the same name exist in several scopes, FairBot uses the nearest one: market first, then event, sport and global.

Use a variable

  • In an expression, type its name: BO1 > entry_odds.
  • To work on a stored selection, set Choose Selection to From Variable and type the variable's name.
  • To check that a variable has been set, use the Market Variable Defined condition.

The User Variables Manager

Choose Tools › User Variables Manager... to see the variables your strategies have set.

The User Variables Manager with the scope tree on the left and the variables of the selected scope on the right

The Scope Tree on the left shows the global scope and the sports, events and markets that have variables. Select one to see its Variables, with their Name, Value and Scope.

  • Edit... (or double-click a variable) changes its value.
  • Delete... removes it.
  • View › Show Inherited Variables also lists the variables the selected scope picks up from the scopes above it.
  • Press Esc to close the window.

Note

Variables are kept only while you're logged in. FairBot clears them when you log out or close it, so don't rely on them to carry values from one session to the next.

Updated 28 Nov 2026