# What is HTPL and why it exists

### What can you do in HTPL?

HTPL supports lots of the basic feature required for a programming language. It allows you to declare variables, compute operations, assigning values, evaluating logical expressions, inserting conditions with an `if then else` structure, and supports the `while` loop construct. In addition to this, it provides interfaces for user inputs and program outputs via `prompt` and `alert` JS functions.

### Why using HTPL?

HTPL main purpose is to destoy the "HTML is not a programming language" meme, but you're able to make complex programs too, if you want.


---

# 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://roveroniandrea.gitbook.io/htpl-compiler/what-is-htpl-and-why-it-exists.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.
