# 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)
