Highlight step count

ok I am making some mistake I am learning but I was trying to create a highlighted step count for 1k 3k 5k an 10k i have tried many different ways of trying this and starting to wonder if its possible. This is the latest one I tried
$#ZKC#=1k?(1000)<=10000?100:0$
if someone has some input in what I am doing wrong here it would be much appreciated

1 Like

I don’t know what #ZKC# is. The tag for steps is #ZSC#. I’m also not sure what you’re trying to do with that conditional but

$#ZSC#>999&&#ZSC#<3000?100:0$

in Opacity will display an asset when steps are between 1,000 and 3,000

1 Like

Oops yes its supposed to ZSC I missed typed that one thank you for the help on this one

Not to sure I get what you want to do but maybe the below is something of that sort:

Each square represents 1000 steps, and grows in length and is 16 wide.
So the formula for the width for the first 1000 steps is:

(clamp(#ZSC#*0.016,0,16))

The second square is then:
$#ZSC#>1000?(clamp((#ZSC#-1000)*0.016,0,16)):0$

The third one:
$#ZSC#>2000?(clamp((#ZSC#-2000)*0.016,0,16)):0$

and so on.

I have opened inspection, so you can have a look.
(for example ST2 are the 2K steps, and ST2s is the background shadow)

3 Likes

I’m not quite sure where you are heading on this, but I have used this before as opacity for step goals by 1k steps.

$(#ZSC#)>=1000?100:0$
$(#ZSC#)>=2000?100:0$
$(#ZSC#)>=3000?100:0$
$(#ZSC#)>=4000?100:0$
$(#ZSC#)>=5000?100:0$
$(#ZSC#)>=6000?100:0$
$(#ZSC#)>=7000?100:0$
$(#ZSC#)>=8000?100:0$
$(#ZSC#)>=9000?100:0$
$(#ZSC#)>=10000?100:0$

1 Like