> For the complete documentation index, see [llms.txt](https://support.attackforge.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.attackforge.com/app/modules/reporting/template-tables.md).

# Template - Tables

> UPDATED: Please head over to our new GitHub Support Site for help, examples, tips and tricks: <https://github.com/AttackForge/ReportGen>

You can add tables with repeating rows as follows:

![](https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FrCyF2cmVjbwmfIMti6ZV%2FScreen%20Shot%202021-10-17%20at%201.55.35%20pm.png?alt=media\&token=0801eb32-9f2c-4e82-9d2e-fc90b66d14b5)

The output in your report will appear as follows:

![](https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FRbpfhPI7qenV810sDiCZ%2FScreen%20Shot%202021-10-17%20at%201.58.54%20pm.png?alt=media\&token=a291bab3-e5b1-4e66-92a5-59f76cc1fdf6)

## Adding Logic to Tables

You can combine this with Conditions to colour-code the relevant sections:

![](https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FEEE24WtVqGKju4jkbtlz%2FScreen%20Shot%202021-10-17%20at%201.52.02%20pm.png?alt=media\&token=275d7a45-3b03-4d6c-9f8a-2cf615921c8e)

The output will appears as follows:

![](https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2F7pzwbb695Qr8dYJLN76H%2FScreen%20Shot%202021-10-17%20at%202.09.15%20pm.png?alt=media\&token=24d1f804-f86c-46f8-8a42-f0392c8d4258)

## **Dynamic Rows & Conditions**

You can add custom logic to your table rows, for example to render the background of a cell different based on certain conditions.

![](https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FgkVCWJcGfg1ENcZWd2pJ%2FScreen%20Shot%202022-06-07%20at%201.25.22%20am.png?alt=media\&token=97187311-c95a-479d-9da3-39f13e38ca78)

![](https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2Fk7JrwMjxWFKd2Qs853cP%2FScreen%20Shot%202021-11-19%20at%209.00.21%20am.png?alt=media\&token=e97ec5b0-bbbd-4f94-a1f2-4d60da426895)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.attackforge.com/app/modules/reporting/template-tables.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
