Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Has_New_Links OR Has_Changed_Links

Quote Reply
Has_New_Links OR Has_Changed_Links
How do I also add the following:

Has_New_Links Yes OR Has_Changed_Links eq Yes


$description .= qq| new/updated | if ($subcat->{Has_New_Links} eq 'Yes');

Cant seem to get this code right. Mad
Quote Reply
Re: [Eraser] Has_New_Links OR Has_Changed_Links In reply to
Hi,

Could you explain a bit more what you are trying to do? Also, a bit more of the global (if thats what you're using =)) would help - as I'm not sure the $subcat hashref is coming from <G>

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Has_New_Links OR Has_Changed_Links In reply to
Thanks Andy,

After a bit of thought, I coded this and it seem to be OK:

$description .= qq| new/updated | if ($subcat->{Has_New_Links} eq 'Yes') or ($subcat->{Has_Changed_Links} eq 'Yes');
Quote Reply
Re: [Eraser] Has_New_Links OR Has_Changed_Links In reply to
Hi,

Yeah that should be fine. I would personally have done:

Code:
if ($subcat->{Has_New_Links} eq 'Yes' || $subcat->{Has_Changed_Links} eq 'Yes') {
$description .= qq| new/updated |
}

:)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Has_New_Links OR Has_Changed_Links In reply to
Yep, nice alternative Cool

Cheers.

~ ERASER


Free JavaScripts @ Insight Eye