I've got the following code that I'm trying to make into an IF/ELSE argument...can anybody help me out with it?
I've tried several things and can't seem to make it work.
Code: Select all
<li class="<?php if (1 == comment->user_id) ddcomment = "authcomment"; echo ddcomment; ?>" id="comment-<?php comment_ID() ?>">
<li class="<?php if (1 !=comment->user_id) ddcomment = "othrcomment"; echo ddcomment; ?>" id="comment-<?php comment_ID() ?>">