# New-TableConditionGroup

Creates a new table condition group with specified conditions and styling options.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML/1.40.0)

Stars **1,025**

Forks **114**

Open issues 

PowerShell Gallery downloads **7,576,901**

Release **v1.45.0**

Language: PowerShell Updated: 2026-11-19

Command 

**Module**

`PSWriteHTML`

Creates a new table condition group with specified conditions and styling options.

## Syntax

```
New-TableConditionGroup
[[-Alignment] <left|center|right|justify>]
[[-BackgroundColor] <String>]
[[-ChildRowFill] <Parent|Both>]
[[-Color] <String>]
[[-Conditions] <ScriptBlock>]
[[-Direction] <rtl>]
[[-FailAlignment] <left|center|right|justify>]
[[-FailBackgroundColor] <String>]
[[-FailColor] <String>]
[[-FailDirection] <rtl>]
[[-FailFontFamily] <String>]
[[-FailFontSize] <Object>]
[[-FailFontStyle] <normal|italic|oblique>]
[[-FailFontVariant] <normal|small-caps>]
[[-FailFontWeight] <String>]
[[-FailTextDecoration] <line-through|overline|underline>]
[[-FailTextTransform] <uppercase|lowercase|capitalize>]
[[-FontFamily] <String>]
[[-FontSize] <Object>]
[[-FontStyle] <normal|italic|oblique>]
[[-FontVariant] <normal|small-caps>]
[[-FontWeight] <String>]
[[-HighlightHeaders] <String[]>]
[-Inline]
[[-Logic] <AND|OR>]
[-Row]
[[-TextDecoration] <line-through|overline|underline>]
[[-TextTransform] <uppercase|lowercase|capitalize>]
[<CommonParameters>]
```

[#](#member-8e9cf8aa7dc747bb3de860c4)

Parameter set: `All Parameter Sets`

## Description

This function creates a new table condition group with the specified conditions and allows customization of the styling options for both pass and fail conditions.

## Examples

### Example 1

```powershell
New-TableConditionGroup -Conditions {
    New-HTMLTableCondition -Name 'Test1' -Value 1 -ComparisonType number
    New-HTMLTableCondition -Name 'Test2' -Value 2 -ComparisonType number
} -Logic 'OR' -HighlightHeaders 'Test1', 'Test2', 'DisplayName', 'DomainName' -Color 'Green' -BackgroundColor 'LightGreen' -FontSize 12 -FontWeight 'bold' -Alignment 'center'
```

Description: Creates a new table condition group with specified conditions, logic, highlighted headers, and styling options for pass conditions.

## Parameters

**-Alignment String optionalposition: 11**

Specifies the alignment for pass conditions.

Possible values: `left`, `center`, `right`, `justify`

**-BackgroundColor String optionalposition: 5**

Specifies the background color for pass conditions.

**-ChildRowFill String optionalposition: 3**

Child row fill for responsive lists

Possible values: `Parent`, `Both`

**-Color String optionalposition: 4**

Specifies the text color for pass conditions.

**-Conditions ScriptBlock optionalposition: 0**

Specifies the conditions to be applied within the condition group.

**-Direction String optionalposition: 14**

Specifies the text direction for pass conditions.

Possible values: `rtl`

**-FailAlignment String optionalposition: 22**

Specifies the alignment for fail conditions.

Possible values: `left`, `center`, `right`, `justify`

**-FailBackgroundColor String optionalposition: 16**

Specifies the background color for fail conditions.

**-FailColor String optionalposition: 15**

Specifies the text color for fail conditions.

**-FailDirection String optionalposition: 25**

Specifies the text direction for fail conditions.

Possible values: `rtl`

**-FailFontFamily String optionalposition: 21**

Specifies the font family for fail conditions.

**-FailFontSize Object optionalposition: 17**

Specifies the font size for fail conditions.

**-FailFontStyle String optionalposition: 19**

Specifies the font style for fail conditions.

Possible values: `normal`, `italic`, `oblique`

**-FailFontVariant String optionalposition: 20**

Specifies the font variant for fail conditions.

Possible values: `normal`, `small-caps`

**-FailFontWeight String optionalposition: 18**

Specifies the font weight for fail conditions.

Possible values: `normal`, `bold`, `bolder`, `lighter`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900`

**-FailTextDecoration String optionalposition: 23**

Specifies the text decoration for fail conditions.

Possible values: `line-through`, `overline`, `underline`

**-FailTextTransform String optionalposition: 24**

Specifies the text transformation for fail conditions.

Possible values: `uppercase`, `lowercase`, `capitalize`

**-FontFamily String optionalposition: 10**

Specifies the font family for pass conditions.

**-FontSize Object optionalposition: 6**

Specifies the font size for pass conditions.

**-FontStyle String optionalposition: 8**

Specifies the font style for pass conditions.

Possible values: `normal`, `italic`, `oblique`

**-FontVariant String optionalposition: 9**

Specifies the font variant for pass conditions.

Possible values: `normal`, `small-caps`

**-FontWeight String optionalposition: 7**

Specifies the font weight for pass conditions.

Possible values: `normal`, `bold`, `bolder`, `lighter`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900`

**-HighlightHeaders String[] optionalposition: 2**

Specifies an array of headers to highlight based on the conditions.

**-Inline SwitchParameter optional**

Switch parameter to indicate if the styling should be applied inline.

**-Logic String optionalposition: 1**

Specifies the logic to be used for combining conditions. Valid values are 'AND', 'OR', or 'NONE'.

Possible values: `AND`, `OR`

**-Row SwitchParameter optional**

Switch parameter to indicate if the styling should be applied to the entire row.

**-TextDecoration String optionalposition: 12**

Specifies the text decoration for pass conditions.

Possible values: `line-through`, `overline`, `underline`

**-TextTransform String optionalposition: 13**

Specifies the text transformation for pass conditions.

Possible values: `uppercase`, `lowercase`, `capitalize`

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:389826CF87A5BAF4F1163B6D1A6C692C65E984492C102ED52C467198E1DEEB03 -->
