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 Quote 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 (edited) if("OK".equals(lines[0])) { listener.statusUpdated(i, "AVAILABLE"); } else { listener.statusUpdated(i, "NOT AVAILABLE"); } Edited October 14, 2013 by Ch0cu3r Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.