Hi
How to combine two conditions
[c=$if(bi(charging) = 1, #f99000, bi(level) < 30, #ff0000, #ffffff)$]$bi(level)$%[/c]
$if(bi(charging) = 1, “↯” + bi(level) + “%”)$
Hi
How to combine two conditions
[c=$if(bi(charging) = 1, #f99000, bi(level) < 30, #ff0000, #ffffff)$]$bi(level)$%[/c]
$if(bi(charging) = 1, “↯” + bi(level) + “%”)$
Can you tell us exactly what you’re trying to achieve?
bi(charging)=1 [c=#F99000] ↯bi(level)% [/c]
bi(charging)=0 bi(level)<30 [c=#FF0000] bi(level)%[/c]
bi(charging)=0 bi(level)>30[c=#ffffff] bi(level)% [/c]
Add text and inside the text write:
$if(bi(charging)=1,“↯”+bi(level),bi(level))$
Them go to the color of the text, make it a formula and write:
$if(bi(charging) =1,“FFF99000”,bi(charging)=0&bi(level)<30,“FFFF0000”,“FFFFFFFF”)$
$if(bi(charging) =1,“FFF99000”,bi(charging)=0&bi(level)<30,“FFFF0000”,“FFFFFFFF”)$ I’m getting it out "FFFFFFFF"
Won’t Nested if work
$if(bi(charging)=1,gv(charging),if(bi(level)<30,gv(less30),gv(more30)))$
I have created 3 global variables for easiness. You can see them in screenshot. And in the text box, give above kode.
Not true, it worked for me, I tested it…
Oh my comment wasn’t directed at you, nik120s, it was directed at the statement that Ranjith made about the nesting.
I think you put the formula for the color inside the text part, so that’s why you are seeing FFFFFF instead of the text you want.
Missed a question mark there… my mistake