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

Doing IF's with this Global

Quote Reply
Doing IF's with this Global
I have this global to return the name of the category a link is in. How do I do if's with this?

Example:

<%if F_Name eq 'Car Port'%>Car Port Accessories<%endif%>

but this dosnt return that text.

Global:

sub {
my $tags = shift;
my $id = $tags->{'ID'};
my $db = $DB->table ('Category','CatLinks');
$db->select_options('LIMIT 1');
my $catid = $db->select ( { LinkID => $id }, ['Name'] )->fetchrow_array;
return $catid;
}

<%F_Name%>

--------------------------------
Privacy Software
Quote Reply
Re: [BLOOD] Doing IF's with this Global In reply to
Please ignore, I used an alternative method

--------------------------------
Privacy Software