Title: Help with Conditional function
Last modified: August 18, 2016

---

# Help with Conditional function

 *  [wmarple](https://wordpress.org/support/users/wmarple/)
 * (@wmarple)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/help-with-conditional-function/)
 * Hello,
 * I want to write a little php if else statement that shows a dynamic line of text
   above the comment form that shows whether the user is logged in or not(users 
   are required to register and login to comment).
 * if
 * the visitor is logged in
 * display: you are logged in as whoever
 * else
 *  to leave a comment.
 * Someone please help me with this. I’m a heck of a lot better with xhtml and css
   than I am with php.
 * Thanks in advance,
 * Will

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/help-with-conditional-function/#post-598138)
 * The classic theme does that. The default theme does that. All you have to do 
   is to look how they do it.
 *  Thread Starter [wmarple](https://wordpress.org/support/users/wmarple/)
 * (@wmarple)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/help-with-conditional-function/#post-598142)
 * Duh, thanks for the smack upside the head X). Sorry, I completely new to wordpress.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Help with Conditional function’ is closed to new replies.

## Tags

 * [development](https://wordpress.org/support/topic-tag/development/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [template tags](https://wordpress.org/support/topic-tag/template-tags/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [wmarple](https://wordpress.org/support/users/wmarple/)
 * Last activity: [18 years, 9 months ago](https://wordpress.org/support/topic/help-with-conditional-function/#post-598142)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
