Pug Posted September 26, 2014 Share Posted September 26, 2014 (edited) hey guys is it me or am i using this correctly and it isnt working?? private State getState() { log("inside getState method"); if(interfaces.containingText(123, "some random text") != null) { log("example state STATE"); return State.EXAMPLE_STATE; } } not sure if im using containingText correctly, the code is giving me a != null on the first if statement all the time and i cant fix it.. Edited September 26, 2014 by Pug Link to comment Share on other sites More sharing options...
FrostBug Posted September 28, 2014 Share Posted September 28, 2014 (edited) It returns a list of interface children. Don't check if its null, but rather if its empty Edited September 28, 2014 by FrostBug Link to comment Share on other sites More sharing options...
Swizzbeat Posted September 28, 2014 Share Posted September 28, 2014 Well if it's never null obviously either an empty List or List populated with the results is being returned.... Link to comment Share on other sites More sharing options...
Pug Posted September 28, 2014 Author Share Posted September 28, 2014 yah thanks frosty i figured it out eventually after playing around a little Link to comment Share on other sites More sharing options...