Negate in Dynamic Content

464
2
06-22-2021 04:35 AM
Labels (1)
JonathanMcDougall
Occasional Contributor III

Hi,

Is it possible to negate a value in Dynamic Content? I've a river level that's reported in distance from the sensor, to enable a little more "sense" from the reading I'd like to negate the value.

Of course (Distance)*-1 doesn't work, but what does?

TIA.

0 Kudos
2 Replies
ShengdiZhang
Esri Regular Contributor

Hi Jonathan,

You can do this with Dynamic content - Expression:

ShengdiZhang_0-1624419591447.png

However, currently decimal number is not supported, so it will look like this:

ShengdiZhang_1-1624419717920.png

 

Regards,

Shengdi

0 Kudos
JonathanMcDougall
Occasional Contributor III

@ShengdiZhang 

Hi, thanks for the reply. 
I'm not looking for 1 to be divided by a value, I just want to turn eg; 77 into -77.

0 Kudos