|
sfbThanks again for the help.This is why I was trying to test=C2=A0 for when it woul=d be empty.When my site firs=t launches,=C2=A0 [selector] is empty, because no menu selections have been= made yet.It's set only by menu selection=s, so there is no chance of it being full of any unwanted characters.Thanks folks.I should h=ave defined my variable [selector] for you better.=C2=A0=C2=A0 [selector] i=s my page navigation variable.
=div>So I don't worry about using a [url] <=div>sbraun1@twcny.rr.com
Stephen F Braun
<=/span>On Fri, Mar 13, 2015 at 8:36 PM, Donovan Bro=oke <dbrooke@euca.us> wrote:Skinning the cat (if you need to check for both bla=nk and raw):=C2=A0[ShowIf |[raw][selector][/raw]||^|[selector]|]==C2=A0Ain't no value for selector[/ShowIf]<=div>Alternatively, in my standard function lib, I have a php=-like 'IsSet' function.[ShowIf [isSet sel=ector]=3DF]=C2=A0Ain't no value for selector[/Sho=wIf](I think that is the syntax.. Away from my of=fice at present)
D. Brooke Mobile ---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.usI =want to use a showif tag with an empty variable.Hi All,=I am having an 'age-old' problem with webDNA.I've rea=d some of the archives, but they don't seem to apply.Thanks for any assistance.
This works:
[showif [selector]=3Dhome]=C2=A0=C2=A0=C2=A0 [include home_=page.inc]=C2=A0=C2=A0 [/showif]=C2=A0=C2=A0=C2=A0
[showif [selector]=3D=local]=C2=A0=C2=A0=C2=A0 [include local_page.inc]=C2=A0=C2=A0 [/showif]=C2==A0=C2=A0=C2=A0
How do I make this work?
[showif [selector]=3D]==C2=A0=C2=A0=C2=A0 [include blank_page.inc]=C2=A0=C2=A0 [/showif]=C2=A0=C2==A0=C2=A0 ---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.us
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...