• Page 1 of 1
  • 1
Forum moderator: bigblog  
How does the formula show less bigger amounts?
sicklon
Posts: 69
Reputation: 0

Message # 1 | 7:36 AM
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)
joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 2 | 8:20 AM
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
sicklon
Posts: 69
Reputation: 0

Message # 3 | 8:42 AM
Thank you very much.

Quote bigblog ()
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
joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 4 | 9:20 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
sicklon
Posts: 69
Reputation: 0

Message # 5 | 9:26 AM
Thank you very much bigblog,

I tried it this way
Code
<?if($OTHER12$ > $OTHER11$/100*1 && $OTHER12$ < $OTHER11$/100*25)?> ...25%.....<?endif?>


hehehehe
  • Page 1 of 1
  • 1
Search: