Gossamer Forum
Quote Reply
Adding ifnot Condition
How do I add a ifnot condition to this global. I tried Filter_Type != 'isMain' but just get errors.

sub {
# return new links
my (@links,$sth,$link);
my $search_db = $DB->table('Links');
$search_db->select_options ("ORDER BY Add_Date DESC","LIMIT $_[0]");
$sth = $search_db->select ( { isValidated => 'Yes', Filter_Type != 'isMain' });
while (my $link = $sth->fetchrow_hashref) {
$link = Links::SiteHTML::tags('link', $link);
push@links, $link;
}
return {newitems=>\@links};
}

~ ERASER


Free JavaScripts @ Insight Eye
Subject Author Views Date
Thread Adding ifnot Condition Eraser 1796 Feb 20, 2007, 4:28 AM
Post Re: [Eraser] Adding ifnot Condition
brewt 1727 Feb 21, 2007, 1:56 PM