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

Output something if global returns nothing

Quote Reply
Output something if global returns nothing
OK, so:

$sth = $search_db->select ( { isNew => 'Yes', isValidated => 'Yes' });

if neither conditions are matched how would I output some text so I can then do a <%if no_text%> in the templates.

As it is, there is not output to work with.

~ ERASER


Free JavaScripts @ Insight Eye
Quote Reply
Re: [Eraser] Output something if global returns nothing In reply to
Hi,

Bit hard to really get what your trying to do? Is it a global/can you post it?

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] Output something if global returns nothing In reply to
Hi Andy,

I discovered I can do a <%if globlaname.length%> to do something when the globat returns nothing.

This works really great!

Thanks anyways.

~ ERASER


Free JavaScripts @ Insight Eye