Page 1 of 1

Could someone help me with this simple IF/ELSE argument

Posted: Mon Sep 29, 2008 2:42 pm
by tyler.pomroy
help me out

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() ?>">