How to Create this Maths Logic

I want to create a logic such that if a value in a label lies between 0 to 5 then set img to 1.png, otherwise if img lies between 5 to 10 then set img to 2.png and if the value of that label lies between 10 to 15 The set img to 3.png

You can do it with simple if/else conditions. I don’t see any problems.


Trie this with math componet
is label 1 less or equal to 5 show 1.png
is label 1 major 5 and less or equal to 10 show 2.png
is label 1 major 10 and less or equal to 15 show 3.png


You could try this instead to make it a clever procedure (30 blocks):

Is this what you want?

1 Like

And these with 43 blocks, but optimized so it doesn’t check each 0-5, 5-10 and 10-15 every time.

Please reply if it helps/we misunderstood you.


Here with 25 block

I hope all block be right :wink:


This Was The Cleverest of all. ThanKyou

1 Like

This are a Daily Challengs ??? :joy:

No, we just try to help him.


yes i kwon, only a joke

1 Like

Thank You Very Much

With 18 blocks

You’re right @bestprintsf this is going to be a DC :joy:

This one also displays an error message if the number is over 15. @YugamAggarwal

1 Like

You are wrong all 1.png
I win !!!
You fix yor block. This to do pitfall :joy:

Nope, edited.

Woah, mate! Stay cool, this is not a race nor a challenge. We are in the same team if you want to take it like this. :hugs:

Wdym? I saw that I forgot to edit them and fixed the mistake. What’s wrong?

Yes you are rights. So sorry i’m only joke, to go to distract my head and that of you also :smile:

1 Like

I post before you edit !!!

Oh right but let’s not hijack this topic. :sweat_smile:

1 Like

:joy: :joy: :joy: :joy: :joy: :joy: :joy: :joy: :joy: :joy:
Thanks so much for to be glad the day

1 Like