# Line Length

Long lines are hard for Skript. Similar to how it's easier for you to go up a staircase containing many small steps rather than one big step, Skript prefers many, smaller lines. Multiple lines will always be faster than one long line. When you have instructions that can be broken up into multiple lines, it's a good idea to break it down.

Examples:

{% code overflow="wrap" lineNumbers="true" %}

```java
set {_item} to 1 of potato of mending named "The Super Potato" with lore "The healthiest vegetable!", "Eat to gain nutrients!", and "Good with butter!"

set {_item} to 1 of potato
set (name of {_item}) to "The Super Potato"
enchant {_item} with mending
add "The healthiest vegetable!" to {_lore::*}
add "Eat to gain nutrients!" to {_lore::*}
add "Good with butter!" to {_lore::*}
set (lore of {_item}) to {_lore::*}
```

{% endcode %}

{% code overflow="wrap" lineNumbers="true" %}

```java
set {_doesMathWork?} to true if (1 + 2) = 3, else false

if (1 + 2) = 3:
  set {_doesMathWork?} to true
else:
  set {_doesMathWork?} to false
```

{% endcode %}


---

# 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://x8ight.gitbook.io/syntask/optimisations/line-length.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.
