u r dead right pauls. brilliant logic. I tried all statements suggested but yes u cannot detect
ANY module whether they r connected or not.
sorry GarethMoffatt I tried both = or == it does not work.
my conclusion as pauls observes is no module can be detected.
sunil v