Difficult "if" statement

admin

Administrator
Staff member
Hello all:I've inherited 6000 lines of code. I'm only 1 month old into Java - andthings have been going quite well. Unfortunately, this little if statementhas got me stumped. This particular part of the code is reading an HTMLtemplate. Can anyone offer some insight into lines 6 and 7?The if statement goes like this...1 //logoPicName = "http://images.inspec.com/" +2 //convertToRelativePath(rs.getString("LogoPath").replace3 //('\\', '/'));45 if ("$ClientLogo".equals(insert)) {6 replacement = null==logoPicName || "".equals(logoPicName.trim7 ()) ? " " : "<IMG SRC=http://forums.devx.com/archive/index.php/\"" + logoPicName + "\" ALIGN=center>";8 ...9 //lots of else ifs...10 }Some questions that come to mind are...1. What is the question mark for? It is not the ?: operator is it?2. This is the biggest part of my question, I cannot figure out where thedouble-quotes begin and end (in several places) to make the syntax make sense.3. The following syntax is elusive "replacement = null==logoPicName". null==logoPicNameseems like an odd statement.Thanks for your help and have a great July 4th weekend!Mark
 
Back
Top