Hi,
Thanks for replying
The trellis.isLED function interfaces to the hardware (if I understand your reply correctly) I'm not clever enough to access the HW directly so need to used the library provided.
I have bodged my code using the worlds ugliest && statement so now have a workaround.