I’m trying to use an if exists statement to determine whether or not a commenter has entered a link, and apply different classes/include different info depending if they have or haven’t.
…would do the trick, but it displays ‘yes’ no matter whether or not the commenter included a link with their comment.
I had asked a similar question a month or so ago about using an if exists statement with custom fields (link), and scribblerguy was kind enough to help with an undocumented function.
Is there a similar undocumented method of doing this? Or am I missing something really simple? 🙂
(@jimmiejo)
15 years, 9 months ago
I’m trying to use an if exists statement to determine whether or not a commenter has entered a link, and apply different classes/include different info depending if they have or haven’t.
Figured something like this:
…would do the trick, but it displays ‘yes’ no matter whether or not the commenter included a link with their comment.
I had asked a similar question a month or so ago about using an if exists statement with custom fields (link), and scribblerguy was kind enough to help with an undocumented function.
Is there a similar undocumented method of doing this? Or am I missing something really simple? 🙂