|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Custom Solutions How does the formula show less bigger amounts? (How does the formula show less bigger amounts?) |
How does the formula show less bigger amounts? |
Example:
(adding Entry) $OTHER12$ Input : 5 10>1 = (emerging) Small 50>11 = (emerging) Medium 100>51= (emerging) Big So, inputted 5, Then that appears in the full page of the post is small . How is the formula? Attachments:
4917853.jpg
(77.4 Kb)
|
sicklon, if I understood your question correctly, this is what you need:
Small Code <?if($OTHER12$ > 1 && $OTHER12$ < 10)?>...<?endif?> Medium Code <?if($OTHER12$ > 10 && $OTHER12$ < 50)?>...<?endif?> Big Code <?if($OTHER12$ > 50 && $OTHER12$ < 100)?>...<?endif?> hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau sometimes i lurk here |
Thank you very much.
Small <?if($OTHER12$ > 1 && $OTHER12$ < 10)?>...<?endif?> 1 Medium <?if($OTHER12$ > 10 && $OTHER12$ < 50)?>...<?endif?> 1 Big <?if($OTHER12$ > 50 && $OTHER12$ < 100)?>...<?endif?> 1 One more, Suppose so what percentage? Because the data input in other11 will change the provisions of the stock. Example: $OTHER11$ = input 150 stock $OTHER12$ = input 20 stock sold (25% > 1%) 37>1 = (emerging) Slightly Sold (50% > 26%) 75>38 = (emerging) Already half sold (100% > 51%) 150>76= (emerging) It's getting exhausted, Is it the same formula? Post edited by sicklon - Tuesday, 2017-08-01, 8:42 AM
|
sicklon, that would look like this:
Code <?if(($OTHER12$*100/$OTHER11$) >= 0 && ($OTHER12$*100/$OTHER11$) < 25)?>between 0% and 24%<?endif?> <?if(($OTHER12$*100/$OTHER11$) >= 25 && ($OTHER12$*100/$OTHER11$) < 50)?>between 25% and 49%<?endif?> <?if(($OTHER12$*100/$OTHER11$) >= 50 && ($OTHER12$*100/$OTHER11$) <= 100)?>between 50% and 100%<?endif?> hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau sometimes i lurk here |
| |||
| |||