How to combine conditions

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) + “%”)$

@RonC Answered this here. Closing as duplicate.