# Műveletek logikai típusú adatokkal

A logikai típusú adatok összehasonlító (relációs) operátorok segítségével írjuk le.

```
== egyenlő
!=, <> nem egyenlő
<= kissebb vagy egyenlő
>= nagyobb vagy egyenlő
```

## Logikai kifejezések összekapcsolása

Több logikai kifejezés segítségével összetett logikai kifejezést is alkothatunk, ha ezeket a következő operátorok valamelyikével összekapcsoljuk:

```
&& (és)
|| (vagy)
! (tagadás)
```

| a | b | a &\&b | a \|\| b | !a | !b |
| - | - | ------ | -------- | -- | -- |
| 1 | 1 | 1      | 1        | 0  | 0  |
| 1 | 0 | 0      | 1        | 0  | 1  |
| 0 | 1 | 0      | 1        | 1  | 0  |
| 0 | 0 | 0      | 0        | 1  | 1  |


---

# 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://cspp.csalex.org/9.-osztaly/muveletek-logikai-tipusu-adatokkal.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.
