Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into ODATA-1435
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen committed Sep 14, 2023
1 parent 06c55e7 commit 29500a8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/odata-csdl-json/odata-csdl-json.html
Original file line number Diff line number Diff line change
Expand Up @@ -3019,7 +3019,7 @@ <h3 id="1447-if-then-else"><a name="IfThenElse" href="#IfThenElse">14.4.7 If-The
<li>it is a direct child of a collection expression or</li>
<li>it is the second or third child of a collection-if-then-else expression.</li>
</ul>
<p>An if-then-else expression MUST contain exactly three child expressions. There is one exception to this rule: if and only if the if-then-else expression is collection-if-then-else expression, the third child expression MAY be omitted, reducing it to an if-then expression. This can be used to conditionally add an element to a collection.</p>
<p>An if-then-else expression MUST contain exactly three child expressions. There is one exception to this rule: if and only if the if-then-else expression is a collection-if-then-else expression, the third child expression MAY be omitted, reducing it to an if-then expression. This can be used to conditionally add an element to a collection.</p>
<p>The first child expression is the condition and MUST evaluate to a Boolean result, e.g. the <a href="#ComparisonandLogicalOperators">comparison and logical operators</a> can be used.</p>
<p>The second and third child expressions are evaluated conditionally. The result MUST be type compatible with the type expected by the surrounding expression.</p>
<p>If the first expression evaluates to <code>true</code>, the second expression MUST be evaluated and its value MUST be returned as the result of the if-then-else expression. If the first expression evaluates to <code>false</code> and a third child element is present, it MUST be evaluated and its value MUST be returned as the result of the if-then-else expression. If no third expression is present, nothing is added to the surrounding collection.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/odata-csdl-json/odata-csdl-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -5035,7 +5035,7 @@ The if-then-else expression is called a collection-if-then-else expression if

An if-then-else expression MUST contain exactly three child
expressions. There is one exception to this rule: if and only if the
if-then-else expression is collection-if-then-else expression, the third
if-then-else expression is a collection-if-then-else expression, the third
child expression MAY be omitted, reducing it to an if-then expression.
This can be used to conditionally add an element to a collection.

Expand Down
2 changes: 1 addition & 1 deletion docs/odata-csdl-xml/odata-csdl-xml.html
Original file line number Diff line number Diff line change
Expand Up @@ -2799,7 +2799,7 @@ <h3 id="1447-if-then-else"><a name="IfThenElse" href="#IfThenElse">14.4.7 If-The
<li>it is a direct child of a collection expression or</li>
<li>it is the second or third child of a collection-if-then-else expression.</li>
</ul>
<p>An if-then-else expression MUST contain exactly three child expressions. There is one exception to this rule: if and only if the if-then-else expression is collection-if-then-else expression, the third child expression MAY be omitted, reducing it to an if-then expression. This can be used to conditionally add an element to a collection.</p>
<p>An if-then-else expression MUST contain exactly three child expressions. There is one exception to this rule: if and only if the if-then-else expression is a collection-if-then-else expression, the third child expression MAY be omitted, reducing it to an if-then expression. This can be used to conditionally add an element to a collection.</p>
<p>The first child expression is the condition and MUST evaluate to a Boolean result, e.g. the <a href="#ComparisonandLogicalOperators">comparison and logical operators</a> can be used.</p>
<p>The second and third child expressions are evaluated conditionally. The result MUST be type compatible with the type expected by the surrounding expression.</p>
<p>If the first expression evaluates to <code>true</code>, the second expression MUST be evaluated and its value MUST be returned as the result of the if-then-else expression. If the first expression evaluates to <code>false</code> and a third child element is present, it MUST be evaluated and its value MUST be returned as the result of the if-then-else expression. If no third expression is present, nothing is added to the surrounding collection.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/odata-csdl-xml/odata-csdl-xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -4858,7 +4858,7 @@ The if-then-else expression is called a collection-if-then-else expression if

An if-then-else expression MUST contain exactly three child
expressions. There is one exception to this rule: if and only if the
if-then-else expression is collection-if-then-else expression, the third
if-then-else expression is a collection-if-then-else expression, the third
child expression MAY be omitted, reducing it to an if-then expression.
This can be used to conditionally add an element to a collection.

Expand Down

0 comments on commit 29500a8

Please sign in to comment.