Message 1 of 3
DIESEL expression - If Statement in a Field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to create a field in an attribute that will take the value of a Rotation Parameter and subtract 180 from it, multiplying it by (-1) if the value is greater than 180. This way I can get negative angle values.
I thought this might work
$(if, $(>, Angle1,180), ((Angle1-180)*-1)),Angle1)
but no luck. Is this possible?