Closed spiteski closed 3 years ago
See the examples in https://github.com/bmarian/token-tooltip-alt/blob/master/EXP_EXPEXAMPLES.md
You can achieve what you want with math.js
If you return an empty value, TTA will not render that line. So check if the value is 0 and return ''.
I tried this with the following
{ a=<resistances.cold.value>; a=compareText(typeOf(a), "null") == 0 ? '' : a; }
The value of cold was 10, however it simply does not show up. (I have selected EXP also to ensure). Should this work or have I mistaken?
Got it with { a=<resistances.cold.value>; a= a == 0 ? "" : a; a }
Thanks!
Is there any way to have different lines only show up if their value is >0? For example, I want to set up all my tokens with the following settings, but hide all the (resistance) values that are 0