Current battery status

Hi all,

Currently am using below formula to know what is my battery status?

$if(bi(charging)=1, charging, discharging)$

Now, here i want to add one more thing like, if the battery level is "100" status should display as full. Finally got the solution after many trials (this may annoy you but am not that good with codings).

$if(bi(level)>99, full, if(bi(charging)=1, charging, discharging))$