@BTDEVICECONNECTED[n] : Returns 1 if the  Bluetooth device whose index is n is connected; otherwise it returns 0. Indexes range from 0 to %_btdevicecount.

 

Example:

 

echo %@btdeviceconnected[0]