Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/content/docs/wix/tools/preprocessor.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,26 +107,26 @@ There are several conditional blocks that let you include or exclude XML based o

| Name | Description |
| ---- | ----------- |
| <?if _expression_ ?> | Include the XML fragment if the provided expression evaluates to true. |
| <?ifdef _variablename_ ?> | Include the XML fragment if the specified variable is defined. |
| <?ifndef _variablename_ ?> | Include the XML fragment if the specified variable is *not* defined. |
| <?elseif _expression_ ?> | Include the XML fragment if a preceding `<?if?>`, `<?ifdef?>`, or `<?ifndef?>` block condition wasn't met *and* the provided expression evaluates to true. |
| <?else?> | Include the XML fragment if _all_ preceding `<?if?>`, `<?ifdef?>`, or `<?ifndef?>` block conditions weren't met. |
| <?endif?> | Indicates the end of the conditional blocks. |
| \<?if _expression_ ?> | Include the XML fragment if the provided expression evaluates to true. |
| \<?ifdef _variablename_ ?> | Include the XML fragment if the specified variable is defined. |
| \<?ifndef _variablename_ ?> | Include the XML fragment if the specified variable is *not* defined. |
| \<?elseif _expression_ ?> | Include the XML fragment if a preceding `<?if?>`, `<?ifdef?>`, or `<?ifndef?>` block condition wasn't met *and* the provided expression evaluates to true. |
| \<?else?> | Include the XML fragment if _all_ preceding `<?if?>`, `<?ifdef?>`, or `<?ifndef?>` block conditions weren't met. |
| \<?endif?> | Indicates the end of the conditional blocks. |

Conditional blocks always begin with `<?if?>`, `<?ifdef?>`, or `<?ifndef ?>`, followed by optional `<?elseif?>`s and one optional `<?else?>`, and must end with `<?endif?>`:

```xml
{<?if?>|<?ifdef?>|<?ifndef?>}
<xml />
<xml />
[<?elseif>]
[<?elseif?>]
<xml />
<xml />
[<?elseif>]
[<?elseif?>]
<xml />
<xml />
[<?else>]
[<?else?>]
<xml />
<xml />
<?endif?>
Expand Down