Skip to content

Commit 2b65d99

Browse files
rodwiddowsonrobmen
authored andcommitted
Clean up some of the conditional examples
1) Add missing `?` in the close statement 2) Escape the initial `<` in a table to stop markup eating the text
1 parent f180f54 commit 2b65d99

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/content/docs/wix/tools/preprocessor.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,26 +107,26 @@ There are several conditional blocks that let you include or exclude XML based o
107107

108108
| Name | Description |
109109
| ---- | ----------- |
110-
| <?if _expression_ ?> | Include the XML fragment if the provided expression evaluates to true. |
111-
| <?ifdef _variablename_ ?> | Include the XML fragment if the specified variable is defined. |
112-
| <?ifndef _variablename_ ?> | Include the XML fragment if the specified variable is *not* defined. |
113-
| <?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. |
114-
| <?else?> | Include the XML fragment if _all_ preceding `<?if?>`, `<?ifdef?>`, or `<?ifndef?>` block conditions weren't met. |
115-
| <?endif?> | Indicates the end of the conditional blocks. |
110+
| \<?if _expression_ ?> | Include the XML fragment if the provided expression evaluates to true. |
111+
| \<?ifdef _variablename_ ?> | Include the XML fragment if the specified variable is defined. |
112+
| \<?ifndef _variablename_ ?> | Include the XML fragment if the specified variable is *not* defined. |
113+
| \<?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. |
114+
| \<?else?> | Include the XML fragment if _all_ preceding `<?if?>`, `<?ifdef?>`, or `<?ifndef?>` block conditions weren't met. |
115+
| \<?endif?> | Indicates the end of the conditional blocks. |
116116

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

119119
```xml
120120
{<?if?>|<?ifdef?>|<?ifndef?>}
121121
<xml />
122122
<xml />
123-
[<?elseif>]
123+
[<?elseif?>]
124124
<xml />
125125
<xml />
126-
[<?elseif>]
126+
[<?elseif?>]
127127
<xml />
128128
<xml />
129-
[<?else>]
129+
[<?else?>]
130130
<xml />
131131
<xml />
132132
<?endif?>

0 commit comments

Comments
 (0)