# Conditions cas particulier

Il est possible que l'on souhaite comparer des éléments dans des tableaux n'ayant pas de clés; exemple :  { <mark style="color:green;">test</mark>: \[ <mark style="color:red;">1</mark> , <mark style="color:red;">2</mark>, "<mark style="color:red;">string</mark>"] }&#x20;

Le moteur de règle supporte les règles directement dans les objets car il va nativement créer une clés pour chaque éléments n'en comportant pas (ces clés sont temporaires et ne sont pas présente dans le résultat final) .  Pour utiliser le moteur de règle sur les valeurs du tableau ne comportant pas clés il suffit de rajouter \_ et l'index de la valeur dans le tableau.&#x20;

Dans notre cas cela donne :

pour 1 test\_0

pour 2 test\_1

et pour "string"  test\_2


---

# 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://dataset-generation-doc.gitbook.io/dataset-generation-doc/moteur-de-regle-en-json/conditions-cas-particulier.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.
