Zooper Coding Question About Displaying a Non Count

Search This thread
I search for this answer and no luck.

What would be the code for when an item (calls, Gmail, or SMS) is 0 it displays nothing or blank; and when there is a count of 1+ it does display?

I tried several times with no good results.

Thank you!
 

ma11en

Senior Member
Jun 6, 2012
120
55
Nottingham
Hi,

Put this in the Advanced Parameters section of the module you use to display the count.

[c]$#SUSMS#=0?00000000$[/c]

It changes the text colour to transparent, when the count is 0, this for SMS you will need to change the SUSMS to SMCALLS for missed calls and SUG for Gmail.

Regards Mark.

Sent from my One X using Tapatalk
 
Last edited:

Bricks4ck

Member
Mar 1, 2014
28
4
54
www.facebook.com
So I've tried this and its not working for me. I have my numbers to text witch shouldn't matter seeing how its still read as a number. But doesn't work?

Sent from my SCH-I605 using Tapatalk
 

ma11en

Senior Member
Jun 6, 2012
120
55
Nottingham
Hi,

Try this in the Manual Text entry of a Rich Text module;

$#SUSMS#>0?[nt]#SUSMS#[/nt]$

This time we are choosing only to display text if the count is above 0, rather than manipulate colour.

The colour is set in the normal way the module, no need for Advanced Parameters this time.

I hope this works, took a bit of head scratching ;)

Regards Mark.

Sent from my One X using Tapatalk
 

RodKahx

Inactive Recognized Themer
May 3, 2008
3,256
15,638
I search for this answer and no luck.

What would be the code for when an item (calls, Gmail, or SMS) is 0 it displays nothing or blank; and when there is a count of 1+ it does display?

I tried several times with no good results.

Thank you!

Or

$#SUSMS#=0? :#SUSMS#$

Mine will be numbered. Above looks to be written ie. Two instead of 2
 

killakarl

Senior Member
Aug 27, 2010
927
349
Pittsburgh, PA
I have a question. I have two sets of icons one black and one white, I want the black one to show until there is a notification. I want the white one to show if there is. Is this possible?

Sent from my SM-N900P using XDA Premium 4 mobile app
 

ma11en

Senior Member
Jun 6, 2012
120
55
Nottingham
Hi,

Try this;

create a new bitmap module and choose the image for 0 count as normal then enter the following code in the Advanced Parameters section.

Replace *path* with the actual path of the image you want to display for a count above 0.


$#SUSMS#>0?*path*$

Regards Mark

Sent from my One X using Tapatalk
 
  • Like
Reactions: killakarl

killakarl

Senior Member
Aug 27, 2010
927
349
Pittsburgh, PA
Does this look right? It is not changing.

Sent from my SM-N900P using XDA Premium 4 mobile app
 

Attachments

  • 1394239106773.jpg
    1394239106773.jpg
    72.4 KB · Views: 93

killakarl

Senior Member
Aug 27, 2010
927
349
Pittsburgh, PA
Thanks fellas. It worked. I will have to play around more with this. This is going to be fun.

Sent from my SM-N900P using XDA Premium 4 mobile app
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Hi,

    Try this;

    create a new bitmap module and choose the image for 0 count as normal then enter the following code in the Advanced Parameters section.

    Replace *path* with the actual path of the image you want to display for a count above 0.


    $#SUSMS#>0?*path*$

    Regards Mark

    Sent from my One X using Tapatalk
    1
    Does this look right? It is not changing.

    Sent from my SM-N900P using XDA Premium 4 mobile app

    You need to put [*b] [*/b] tags around the path for it to work (ignore the *; see the tag overview in your screenshot)

    Send from my secret moonbase via space carrier pigeons