Use < Sign in '@(...)' Expressions


How to enter < sign in '@(...)' expressions?



< signs can be entered in '@(...)' expressions directly.

For example, the following "set-variable" policy statement uses a "@(...)" expression that contains a < sign as the Boolean operator:

<set-variable name="isTrue" value="@(1 < 2)" />

From XML syntax point of view, the above XML element is actually not valid.

But has no problem take the above XML statement.

It could be that is processing the @(...) expression first, before processing the XML element.


Using Azure API Policy

⇒⇒Microsoft Azure API Management Tutorials

2017-11-12, 281👍, 0💬