slyte33 Posted October 14, 2013 Share Posted October 14, 2013 I'm clueless with java fairly good with PHP. How could i make this line an if else like you would with php listener.statusUpdated(i, "OK".equals(lines[0]) ? "AVAILABLE" : "NOT AVAILABLE"); Thanks Link to comment https://forums.phpfreaks.com/topic/282957-how-would-i-do-this-as-an-if-else/ Share on other sites More sharing options...
Ch0cu3r Posted October 14, 2013 Share Posted October 14, 2013 if("OK".equals(lines[0])) { listener.statusUpdated(i, "AVAILABLE"); } else { listener.statusUpdated(i, "NOT AVAILABLE"); } Link to comment https://forums.phpfreaks.com/topic/282957-how-would-i-do-this-as-an-if-else/#findComment-1453866 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.