|
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)<=/span>
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 read 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 <=br>[showif [selector]=3Dlocal]=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
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...