# COUNTER

## Aperçu

L'application de workflow **COUNTER** vous permet de manipuler facilement un compteur dans une boucle.

## Mode de fonctionnement

L'application **COUNTER** nécessite le paramètre `COUNTER` qui sera incrémenté ou décrémenté en fonction de votre choix.&#x20;

## Paramètres

<table data-full-width="false"><thead><tr><th width="236.92022705078125" valign="top">Paramètre</th><th width="115.0811767578125" valign="top">Type</th><th width="113.41021728515625" valign="top">Direction</th><th valign="top">Description</th></tr></thead><tbody><tr><td valign="top"><code>COUNTER</code></td><td valign="top">NUMERIC</td><td valign="top">IN</td><td valign="top">Le compteur à manipuler</td></tr><tr><td valign="top"><code>DEFAULT_VALUE</code></td><td valign="top">NUMERIC</td><td valign="top">IN</td><td valign="top">Valeur par défaut du compteur; défaut à <code>0</code></td></tr><tr><td valign="top"><code>INCREMENT</code></td><td valign="top">NUMERIC</td><td valign="top">IN</td><td valign="top">La valeur d'incrémentation; valeur à <code>1</code> par défaut. <br>La valeur peut être négative.</td></tr><tr><td valign="top"><code>RESET</code></td><td valign="top">TEXT</td><td valign="top">IN</td><td valign="top">Indique si le compteur doit être réinitialisé à la valeur par défaut</td></tr><tr><td valign="top"><code>RESET_AT</code></td><td valign="top">NUMERIC</td><td valign="top">IN</td><td valign="top">Indique si le compteur doit être réinitialisé lorsque la valeur spécifiée est atteinte</td></tr><tr><td valign="top"><code>HAS_RESET</code></td><td valign="top">TEXT</td><td valign="top">OUT</td><td valign="top">Retourne <code>Y</code> ou <code>N</code> pour indiquer si le compteur a été réinitialisé</td></tr></tbody></table>

## Exemples

### Incrémentation simple

#### Entrée

<table><thead><tr><th valign="top">Paramètre</th><th valign="top">Valeur</th></tr></thead><tbody><tr><td valign="top"><code>COUNTER</code></td><td valign="top"><code>0</code></td></tr></tbody></table>

#### Sortie

<table><thead><tr><th valign="top">Paramètre</th><th valign="top">Valeur</th></tr></thead><tbody><tr><td valign="top"><code>COUNTER</code></td><td valign="top"><code>1</code></td></tr></tbody></table>

### Décrementation simple

#### Entrée

<table><thead><tr><th valign="top">Paramètre</th><th valign="top">Valeur</th></tr></thead><tbody><tr><td valign="top"><code>COUNTER</code></td><td valign="top"><code>0</code></td></tr><tr><td valign="top"><code>INCREMENT</code></td><td valign="top"><code>-1</code></td></tr></tbody></table>

#### Sortie

<table><thead><tr><th valign="top">Paramètre</th><th valign="top">Valeur</th></tr></thead><tbody><tr><td valign="top"><code>COUNTER</code></td><td valign="top"><code>-1</code></td></tr></tbody></table>

### Réinitialisation simple

#### Entrée

<table><thead><tr><th valign="top">Paramètre</th><th valign="top">Valeur</th></tr></thead><tbody><tr><td valign="top"><code>COUNTER</code></td><td valign="top"><code>8</code></td></tr><tr><td valign="top"><code>RESET</code></td><td valign="top"><code>Y</code></td></tr></tbody></table>

#### Sortie

<table><thead><tr><th valign="top">Paramètre</th><th valign="top">Valeur</th></tr></thead><tbody><tr><td valign="top"><code>COUNTER</code></td><td valign="top"><code>0</code></td></tr><tr><td valign="top"><code>HAS_RESET</code></td><td valign="top"><code>Y</code></td></tr></tbody></table>

### Réinitialisation à une valeur spécifique

#### Entrée

<table><thead><tr><th valign="top">Paramètre</th><th valign="top">Valeur</th></tr></thead><tbody><tr><td valign="top"><code>COUNTER</code></td><td valign="top"><code>8</code></td></tr><tr><td valign="top"><code>DEFAULT_VALUE</code></td><td valign="top">5</td></tr><tr><td valign="top"><code>RESET</code></td><td valign="top"><code>Y</code></td></tr></tbody></table>

#### Sortie

<table><thead><tr><th valign="top">Paramètre</th><th valign="top">Valeur</th></tr></thead><tbody><tr><td valign="top"><code>COUNTER</code></td><td valign="top"><code>5</code></td></tr><tr><td valign="top"><code>HAS_RESET</code></td><td valign="top"><code>Y</code></td></tr></tbody></table>

### Réinitialisation lorsque la valeur cible est atteinte

#### Entrée

<table><thead><tr><th valign="top">Paramètre</th><th valign="top">Valeur</th></tr></thead><tbody><tr><td valign="top"><code>COUNTER</code></td><td valign="top"><code>3</code></td></tr><tr><td valign="top"><code>DEFAULT_VALUE</code></td><td valign="top"><code>0</code></td></tr><tr><td valign="top"><code>RESET_AT</code></td><td valign="top"><code>4</code></td></tr></tbody></table>

#### Sortie

<table><thead><tr><th valign="top">Paramètre</th><th valign="top">Valeur</th></tr></thead><tbody><tr><td valign="top"><code>COUNTER</code></td><td valign="top"><code>0</code></td></tr><tr><td valign="top"><code>HAS_RESET</code></td><td valign="top"><code>Y</code></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.workflowgen.com/admin-fr/applications-de-workflow/application-de-workflow-counter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
