Skip links

Increment / Decrement variable values

This feature allows you to increase or decrease the value of a variable each time the sequence is run.

Si le concept d’une variable est totalement abstrait pour vous, je vous conseille de consulter l’article suivant avant de poursuivre : Tout savoir sur les variables {{…}}.

1. Use

Among the construction functions, click on “Variables” then, in the menu that opens, click on “Increment” or “Decrement”.

Let’s create a new sequence with Increment.
We’ll choose the variable“myVariable” and set the value in the value field to 2.

When the bot executes this function, it will add 2 to the value of the variable“myVariable“.

Vérifions le résultat avec l’aide d’une fonctionnalité Texte :

Let’s run the bot to see the result:

In this example, myVariable was initially set to 5. The value of the variable has now changed to 7 (5+2).

The logic of functionality Decrement function is identical, except that instead of adding a value, we subtract it.

2. Options

A – Vous pouvez laissez un commentaire à vos collaborateurs à propos de cette fonctionnalité en cliquant sur l’icône (voir ci-dessous).
Voir l’article : Ajouter des Commentaires

Add a comment

B – By clicking on the “?” icon, the online help will open on the article corresponding to this feature.

Online help

C – You can duplicate, delete or move this feature by using the icons that appear when you hover over it.

Move, duplicate and delete functionality
SHARE ON