# Scripting

See [scripting ](/dbnetsoft/raceresultexchange/scripting.md)for further details on how scripting and placeholders work.

### Internal Fields <a href="#internal-fields" id="internal-fields"></a>

The following fields are available in all display board templates, not only the currently selected one:

* `Clock` contains the current time of day. E.g. one can use `{{ Clock | Format "HH:mm" }}` to format the clock with hours and minutes only.
* `Countdown` contains the countdown to the given target time
* `Runtime` contains the running time from the given target time
* `TextLine1`^, `TextLine2`, ... or `TextLines[x]` contains the freetext lines, replace x with your line number starting from 0
* `Gaptime` contains the current gap time to the leader if any, otherwise null
* `Leadertime` contains the current time of the leader if any, otherwise null

## Time Trial

In Time trial mode, the following fields can be used in addition:

* `RunningTime` contains the running time of the athlete expected next to finish (calculated locally by using the field specified in "Start TOD Field")

## Lap Counter

In lap counter mode, the following fields are available

*Lap* holds the current lap, *Laps* holds the total amount of laps.


---

# 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.dbnetsoft.com/dbnetsoft/raceresultexchange/operation-modes/displayboard/scripting.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.
