Bluetooth notification

what is the formula to show if bluetooth is on or off?

The formula you’re looking for is $nc(bt)$
It’ll give you a 0, 1 or 2 depending on state.

0 - if Bluetooth is Off (disabled)
1 - if Bluetooth is On but not connected to anything (enabled)
2 - if Bluetooth is On and connected to something

So a couple of examples would be:

$if(nc(bt) = 0, “Bluetooth is Off”, nc(bt) = 1, “Bluetooth is On”, nc(bt) = 2, “Bluetooth is connected”)$

$if(nc(bt) != 0, “Bluetooth is On”, “Bluetooth is Off”)$