Printing <%uiPhoto%> returns a URL string for the image, as it should - on comments with avatars.
For those without though, it prints nothing.
It seems that it returns the correct values when there is an image, but as soon as there isn't a profile picture attached it continues to return an empty (not null) value of some sort. In theory if it returned a true null value for that uiPhoto, we should be able to effectively use the if/else statements.
This is all happening within that loop, and my suspicion is that at some point when it finds there is no profile picture - it just skips all the data in that global, for that particular comment, until it loops to a comment with an avatar. At least that's my assumption.
For those without though, it prints nothing.
It seems that it returns the correct values when there is an image, but as soon as there isn't a profile picture attached it continues to return an empty (not null) value of some sort. In theory if it returned a true null value for that uiPhoto, we should be able to effectively use the if/else statements.
This is all happening within that loop, and my suspicion is that at some point when it finds there is no profile picture - it just skips all the data in that global, for that particular comment, until it loops to a comment with an avatar. At least that's my assumption.