> For the complete documentation index, see [llms.txt](https://docs.videsk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.videsk.io/es-developers/webhooks/helpers/gte-gt.md).

# #gte/gt

Este tipo de helper tiene como utilidad realizar una comparación de tipo verdadero o falso, basada en los valores ingresados.

Habitualmente `#gte` o `#gt` los utilizarás en conjunto con otros helpers.

{% hint style="success" %}
Te recomendamos utilizar estos helpers especialmente para generar condicionales.
{% endhint %}

#### Datos de ejemplo

```json
{
  "number": 99,
  "name": "John Doe",
  "list": [
    "ABC",
    "DEF"
  ],
  "object": [
    { "name": "ABC" },
    { "name": "DEF" }
  ]
}
```

## Sintaxis

La sintaxis es:

```handlebars
{{#gte UMBRAL}}VALOR{{/lte}}
```

Donde:

* `UMBRAL`: El número contra el cual comparar
* `VALOR`: El valor que proviene de los datos

En cualquier caso, puedes introducir números variables (desde los datos) o fijos de esta manera puedes comparar un valor dinámico con uno fijo.

### Ejemplos de uso

{% hint style="info" %}
`#gte` y `#gt` automáticamente hará `parsing` a ambos valores de comparación como números.
{% endhint %}

## `#gte`

```handlebars
{{#gte number}}99{{/gte}}
{{! Output: true }}

{{#gte number}}1{{/gte}}
{{! Output: false }}

{{#gte 99}}{{@root.number}}{{/gte}}
{{! Output: true }}
```

## `#gt`

```handlebars
{{#gt number}}99{{/gt}}
{{! Output: false }}

{{#gt number}}1{{/gt}}
/{{! Output: false }}

{{#gt 99}}{{@root.number}}{{/gt}}
{{! Output: false }}
```

{% hint style="warning" %}
El helper `#greater` sigue disponible como retrocompatibilidad, prefiera utilizar `#gt`.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.videsk.io/es-developers/webhooks/helpers/gte-gt.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.
