If function question...

Trying to set an if function, so that It will display a number of notifications only if there is any.. what's wrong with this?..

$if(uc(WhatsApp)=0, " ", "uc(WhatsApp)")$

Instead of getting the number of notifications there is, I get a text: uc(whatssapp)

Help... :)

1 reply

When you use a code in an if condition or inside other code or wherever, don't use the quotation marks, because what you have into the quotation is printed literal, like in your kode.

Try this:

$if(uc(whatsapp)=0, " ", uc(whatsapp))$