Skip to content

Commit 6f66766

Browse files
Merge pull request #292834 from NaridaL/patch-1
template-functions-logical.md: if logic restriction
2 parents 7e4693c + 2a03fd7 commit 6f66766

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

articles/azure-resource-manager/templates/template-functions-logical.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ Returns second parameter when first parameter is **True**; otherwise, returns th
144144

145145
When the condition is **True**, only the true value is evaluated. When the condition is **False**, only the false value is evaluated. With the `if` function, you can include expressions that are only conditionally valid. For example, you can reference a resource that exists under one condition but not under the other condition. An example of conditionally evaluating expressions is shown in the following section.
146146

147+
Note that the above **only** applies when the condition can be evaluated at template start, for example you cannot use a `reference()` in the condition.
148+
147149
### Examples
148150

149151
The following example shows how to use the `if` function.

0 commit comments

Comments
 (0)