# If & Else Statements

## If & Else statements

* Control flow is controlling which lines of code run in a program
* With conditionals such as if, else

```python
if 5 < 6:
	print('yes 5 is less than 6')
else:
	print('this will never be printed') # in code editor will say that code is not reachable
```

### Always going to run:

```python
if True:
	print("this will always be printed")
else:
	print("this will never be printed")
```

### Surrounding conditionals with paranthesies:

```python
elephant = 800
hippo = 900
if (elephant < hippo and (3 > 2)):
	print('if statement evaluated to True')
else:
	print('if statement evaluated to False')
```


---

# 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.arkannis.net/programming/courses/python-pcap-31-03-course/control-flow/if-and-else-statements.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.
