-
Return positive values only
Hi there.
I have an expression-driven scale property for a layer. Now, my expression returns positive and negative values; I’d like to discard the lattest, so that positive values are used, yet negative ones are discarded as 0.
I’ve found a lot of answers that use the Math.abs expression, yet this wouldn’t work for me, as negatives would turn positive with the same absolute, not 0, which is what I need.
I think the solution must be really simple; sorry if this has been answered before, I’ve done some search without success.
Thanks a lot.
A.