EA to recognise demo/real account

Hi,
I'm just wondering any experts out there know how to make an EA recognise between a real and demo account.
Many thanks,
bool IsDemo ( )
Returns TRUE if the expert runs on a demo account, otherwise returns FALSE.
phy:
bool IsDemo ( )
Returns TRUE if the expert runs on a demo account, otherwise returns FALSE.

Thanks Phy.. :D