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

Q

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

✍: FYIcenter.com

A

< 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 Azure.com has no problem take the above XML statement.

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

 

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

Use '@(...)' Expressions in XML Attributes

Using Azure API Policy

⇑⇑ Microsoft Azure API Management Tutorials

2017-11-12, 2457🔥, 0💬