Hallo zusammen, ich versuche gerade den Ungelesene Zähler als Formel für die Icon Farbe zu verwenden. Ich komm da aber nicht so recht weiter, vielleicht kann mir jemand helfen. Die Formel: $ni(pcount, com.whatsapp)$, soll wenn sie “=0” ist die Farbe “color1” und wenn sie “>=1” ist, die Farbe “color2” ausgeben. Wenn das überhaupt geht. Vielen Dank
Well the formula would be:
$if(ni(count,com.whatsapp)>0, colour2, colour1)$
IF ni(pcount, com.whatsapp) returns a numeric value (I don’t use WhatsApp so can’t test that part.
Hallo, ich habe die Formel ausprobiert, leider funktioniert sie nicht.
Das Ergebnis sollte eine andere Farbe für das Icon sein, aber es ändert sich nichts.
Grüße Jürgen
What does $ni(pcount, com.whatsapp)$ put in a text field show? If you have no message notifications then it should be 0, and if you have someone send you a message then it should return 1. So if that works then putting the
$if(ni(count,com.whatsapp)>0, colour2, colour1)$
In the Text > Paint field should change the colours when you get a message.
You also have to put your own proper colour choices in to replace ‘colour1’ and ‘colour2’ because those are just temporary placeholders. Something like ‘#FFFF0000’ (red) or ‘#FF00FF00’ (green).
Hallo,
Vielen Dank, es funktioniert perfekt.
Ich habe die Formel geändert:
$if(ni(pcount,com.whatsapp)>0, gv(color23), gv(color22))$
Wobei die Variablen color22 und color23 bei den Globalen Variablen hinterlegt sind.
Grüße Jürgen