Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How can i use wildcard in if-statements

Quote Reply
How can i use wildcard in if-statements
Hello,
how can i use wildcards in if-statements?
e.g. <%if Name eq 'J*'%> Youre name begins with "J"! <%endif%>

Thanks in advance!

Coyu
Quote Reply
Re: [Coyu] How can i use wildcard in if-statements In reply to
Try this:

<%if Name istart "J"%>
Your name start with J
<%else%>
Your name doesn't start with J
<%endif%>

Virginia
Quote Reply
Re: [Virginia] How can i use wildcard in if-statements In reply to
it doesnt works... ,-(

Any other possibilities?

Greetings,

Coyu
Quote Reply
Re: [Coyu] How can i use wildcard in if-statements In reply to
What version of LinksSQL are you using?

Try this:

<%if Name start "J"%>
Your name start with J
<%else%>
Your name doesn't start with J
<%endif%>

Virginia
Quote Reply
Re: [Virginia] How can i use wildcard in if-statements In reply to
Hi - i use all alternatives:
- start "J"
- istart "J"
- start 'J'
- etc...

But nothing works!

We are using Version Loinks SQL 2.1.2

Greetings,

Coyu

Quote Reply
Re: [Coyu] How can i use wildcard in if-statements In reply to
Hi Coyu,

If I were not wrong, this version has not yet support this opterator "start" in template yet. I see that it is in version 2.2.0.

Cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog

Last edited by:

tandat: Jul 28, 2004, 11:07 PM
Quote Reply
Re: [tandat] How can i use wildcard in if-statements In reply to
ok - thx for the info!

Coyu