Setting a conditional "When number X is a decimal number"

Hi,

Is there any way that I can setup a conditional on a text element that is something similar to

“When this number (the text element is displaying a dynamic number) is a decimal number, text=X”

?

Thanks

by “decimal” number you mean when it has decimals?

If that’s the case, you could make:
when NUMBER (modulo) 1 is not 0 → (condition when it has decimals)
when NUMBER (modulo) 1 is 0 → (condition when it doesn’t have decimals)

with modulo it wil divide by the number and get the decimals, so if your number is 12.5 it will result 0.5

3 Likes

That’s exactly what I was looking for. Thanks!

2 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.