Skip to content

Commit c8ebfd9

Browse files
committed
clarify strings include property values
1 parent daae641 commit c8ebfd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/msbuild/msbuild-conditions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ MSBuild supports a specific set of conditions that can be applied wherever a `Co
3434
|()|Grouping mechanism that evaluates to `true` if expressions contained inside evaluate to `true`.|
3535
|`$if$ ( %expression% ), $else$, $endif$`|Checks whether the specified `%expression%` matches the string value of the passed custom template parameter. If the `$if$` condition evaluates to `true`, then its statements are run; otherwise, the `$else$` condition is checked. If the `$else$` condition is `true`, then its statements are run; otherwise, the `$endif$` condition ends expression evaluation.<br /><br /> For examples of usage, see [Visual Studio project/item template parameter logic](https://stackoverflow.com/questions/6709057/visual-studio-project-item-template-parameter-logic).|
3636

37-
The `Condition` element is a single string, and so any strings that are used in the expression need to be enclosed with a single-quote. Spaces between operators are allowed and commonly used for readability, but they're not required.
37+
The `Condition` element is a single string, and so any strings that are used in the expression, including around property values, need to be enclosed with a single-quote. Spaces between operators are allowed and commonly used for readability, but they're not required.
3838

3939
To use the Boolean `And` and `Or` operators, specify operands inside the `Condition` element's string value, as in the following example:
4040

0 commit comments

Comments
 (0)