# Comparaison nodes

<div data-with-frame="true"><figure><img src="/files/BIPWxNMPGHAqs1Zz4IoT" alt="" width="254"><figcaption><p>Comparaison Node</p></figcaption></figure></div>

Comparaison nodes evaluate conditions by comparing two values, enabling your strategy to make decisions based on numeric comparisons.

***

### Comparison Operators

Compare nodes support standard comparison operations:

* **Greater Than (>)** - Returns true if the first value is greater than the second
* **Less Than (<)** - Returns true if the first value is less than the second
* **Equal (==)** - Returns true if both values are equal
* **Greater Than or Equal (>=)** - Returns true if the first value is greater than or equal to the second
* **Less Than or Equal (<=)** -Returns true if the first value is less than or equal to the second
* **Not Equal (!=)** - Returns tue if the values are not equal

***

### Using Compare Nodes

Connect two numeric values to a compare node's inputs, these could be signal values (like APY rates), token amounts, or results from math operations. Select the comparison operator, and the node outputs a boolean (true/false) result based on the comparison.

The boolean output can then flow to conditional branch nodes or logical gates to control the flow of your strategy. For example, you might compare the current APY of a protocol against a threshold to decide whether to deposit or withdraw.


---

# 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://stazys.gitbook.io/stazys-docs/yield-studio/drag-and-drop-nodes/comparaison-nodes.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.
