Re: [WebDNA] showif with empty variable

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112176
interpreted = N
texte = --089e01182faa3f62b10511405cda Content-Type: text/plain; charset=UTF-8 Kenneth: Your solution sure makes sense, except my [selector] variables are passed in the URL, so I wasn't able to test it. But thanks for the input. I just might use that knowledge on other projects. sfb Stephen F Braun sbraun1@twcny.rr.com On Sat, Mar 14, 2015 at 9:36 AM, Steve Braun wrote: > Thanks folks. > The use of the [raw] tag made it work. > > I should have defined my variable [selector] for you better. [selector] > is my page navigation variable. > It's set only by menu selections, so there is no chance of it being full > of any unwanted characters. > So I don't worry about using a [url] > > When my site first launches, [selector] is empty, because no menu > selections have been made yet. > This is why I was trying to test for when it would be empty. > > Thanks again for the help. > sfb > > > > > > Stephen F Braun > sbraun1@twcny.rr.com > > On Fri, Mar 13, 2015 at 8:36 PM, Donovan Brooke wrote: > >> Skinning the cat (if you need to check for both blank and raw): >> [ShowIf |[raw][selector][/raw]||^|[selector]|] >> Ain't no value for selector >> [/ShowIf] >> >> Alternatively, in my standard function lib, I have a php-like 'IsSet' >> function. >> >> [ShowIf [isSet selector]=F] >> Ain't no value for selector >> [/ShowIf] >> >> (I think that is the syntax.. Away from my office at present) >> >> D. Brooke Mobile >> >> On Mar 13, 2015, at 5:59 PM, Steve Braun wrote: >> >> Hi All, >> I am having an 'age-old' problem with webDNA. >> I want to use a showif tag with an empty variable. >> I've read some of the archives, but they don't seem to apply. >> >> This works: >> [showif [selector]=home] [include home_page.inc] [/showif] >> [showif [selector]=local] [include local_page.inc] [/showif] >> >> How do I make this work? >> [showif [selector]=] [include blank_page.inc] [/showif] >> >> Thanks for any assistance. >> >> Stephen F Braun >> sbraun1@twcny.rr.com >> --------------------------------------------------------- This message >> is sent to you because you are subscribed to the mailing list . To >> unsubscribe, E-mail to: archives: >> http://mail.webdna.us/list/talk@webdna.us Bug Reporting: >> support@webdna.us >> >> --------------------------------------------------------- This message is >> sent to you because you are subscribed to the mailing list . To >> unsubscribe, E-mail to: archives: >> http://mail.webdna.us/list/talk@webdna.us Bug Reporting: >> support@webdna.us >> > > --089e01182faa3f62b10511405cda Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Kenneth: Your solution sure makes sense,=C2=A0 except= my [selector] variables are passed in the URL, so I wasn't able to tes= t it.=C2=A0 But thanks for the input.=C2=A0 I just might use that knowledge= on other projects.
sfb



Stephen F Brau= n
sbraun1@twcny.rr.com

On Sat, Mar 14, 2015 at 9:36 AM, Steve Braun= <sbraun1@twcny.rr.com> wrote:
Thanks folks.
The use of the [raw] tag made it work.

I should h= ave defined my variable [selector] for you better.=C2=A0=C2=A0 [selector] i= s my page navigation variable.
It's set only by menu selection= s, so there is no chance of it being full of any unwanted characters.
So I don't worry about using a [url]

When my site firs= t launches,=C2=A0 [selector] is empty, because no menu selections have been= made yet.
This is why I was trying to test=C2=A0 for when it woul= d be empty.

Thanks again for the help.
sfb




<= div>
Stephen F Braun
<= /span>
sbraun1@twcny.rr.com

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

On Mar 13, 201= 5, at 5:59 PM, Steve Braun <sbraun1@twcny.rr.com> wrote:

Hi All,=
I am having an 'age-old' problem with webDNA.
I = want to use a showif tag with an empty variable.
I've rea= d some of the archives, but they don't seem to apply.
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

Thanks for any assistance.

Stephen F Braun
sbraun= 1@twcny.rr.com
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us


--089e01182faa3f62b10511405cda-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] showif with empty variable (Brian Burton 2015)
  2. Re: [WebDNA] showif with empty variable (Donovan Brooke 2015)
  3. Re: [WebDNA] showif with empty variable (Brian Burton 2015)
  4. Re: [WebDNA] showif with empty variable (Donovan Brooke 2015)
  5. Re: [WebDNA] showif with empty variable (Dan Strong 2015)
  6. Re: [WebDNA] showif with empty variable (Terry Wilson 2015)
  7. Re: [WebDNA] showif with empty variable (Kenneth Grome 2015)
  8. Re: [WebDNA] showif with empty variable (Steve Braun 2015)
  9. Re: [WebDNA] showif with empty variable (Steve Braun 2015)
  10. Re: [WebDNA] showif with empty variable (Kenneth Grome 2015)
  11. Re: [WebDNA] showif with empty variable (Donovan Brooke 2015)
  12. Re: [WebDNA] showif with empty variable (Brian Burton 2015)
  13. Re: [WebDNA] showif with empty variable (Terry Wilson 2015)
  14. Re: [WebDNA] showif with empty variable (Dan Strong 2015)
  15. [WebDNA] showif with empty variable (Steve Braun 2015)
--089e01182faa3f62b10511405cda Content-Type: text/plain; charset=UTF-8 Kenneth: Your solution sure makes sense, except my [selector] variables are passed in the URL, so I wasn't able to test it. But thanks for the input. I just might use that knowledge on other projects. sfb Stephen F Braun sbraun1@twcny.rr.com On Sat, Mar 14, 2015 at 9:36 AM, Steve Braun wrote: > Thanks folks. > The use of the [raw] tag made it work. > > I should have defined my variable [selector] for you better. [selector] > is my page navigation variable. > It's set only by menu selections, so there is no chance of it being full > of any unwanted characters. > So I don't worry about using a [url] > > When my site first launches, [selector] is empty, because no menu > selections have been made yet. > This is why I was trying to test for when it would be empty. > > Thanks again for the help. > sfb > > > > > > Stephen F Braun > sbraun1@twcny.rr.com > > On Fri, Mar 13, 2015 at 8:36 PM, Donovan Brooke wrote: > >> Skinning the cat (if you need to check for both blank and raw): >> [ShowIf |[raw][selector][/raw]||^|[selector]|] >> Ain't no value for selector >> [/ShowIf] >> >> Alternatively, in my standard function lib, I have a php-like 'IsSet' >> function. >> >> [ShowIf [isSet selector]=F] >> Ain't no value for selector >> [/ShowIf] >> >> (I think that is the syntax.. Away from my office at present) >> >> D. Brooke Mobile >> >> On Mar 13, 2015, at 5:59 PM, Steve Braun wrote: >> >> Hi All, >> I am having an 'age-old' problem with webDNA. >> I want to use a showif tag with an empty variable. >> I've read some of the archives, but they don't seem to apply. >> >> This works: >> [showif [selector]=home] [include home_page.inc] [/showif] >> [showif [selector]=local] [include local_page.inc] [/showif] >> >> How do I make this work? >> [showif [selector]=] [include blank_page.inc] [/showif] >> >> Thanks for any assistance. >> >> Stephen F Braun >> sbraun1@twcny.rr.com >> --------------------------------------------------------- This message >> is sent to you because you are subscribed to the mailing list . To >> unsubscribe, E-mail to: archives: >> http://mail.webdna.us/list/talk@webdna.us Bug Reporting: >> support@webdna.us >> >> --------------------------------------------------------- This message is >> sent to you because you are subscribed to the mailing list . To >> unsubscribe, E-mail to: archives: >> http://mail.webdna.us/list/talk@webdna.us Bug Reporting: >> support@webdna.us >> > > --089e01182faa3f62b10511405cda Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Kenneth: Your solution sure makes sense,=C2=A0 except= my [selector] variables are passed in the URL, so I wasn't able to tes= t it.=C2=A0 But thanks for the input.=C2=A0 I just might use that knowledge= on other projects.
sfb



Stephen F Brau= n
sbraun1@twcny.rr.com

On Sat, Mar 14, 2015 at 9:36 AM, Steve Braun= <sbraun1@twcny.rr.com> wrote:
Thanks folks.
The use of the [raw] tag made it work.

I should h= ave defined my variable [selector] for you better.=C2=A0=C2=A0 [selector] i= s my page navigation variable.
It's set only by menu selection= s, so there is no chance of it being full of any unwanted characters.
So I don't worry about using a [url]

When my site firs= t launches,=C2=A0 [selector] is empty, because no menu selections have been= made yet.
This is why I was trying to test=C2=A0 for when it woul= d be empty.

Thanks again for the help.
sfb




<= div>
Stephen F Braun
<= /span>
sbraun1@twcny.rr.com

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

On Mar 13, 201= 5, at 5:59 PM, Steve Braun <sbraun1@twcny.rr.com> wrote:

Hi All,=
I am having an 'age-old' problem with webDNA.
I = want to use a showif tag with an empty variable.
I've rea= d some of the archives, but they don't seem to apply.
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

Thanks for any assistance.

Stephen F Braun
sbraun= 1@twcny.rr.com
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us


--089e01182faa3f62b10511405cda-- Steve Braun

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

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...

Related Readings:

Re[2]: 2nd WebCatalog2 Feature Request (1996) MacOS alias identification? (1998) bug in [SendMail] (1997) log out (2001) Searching multiple Databases (1997) Re:listfiles-looking for slick solution (1997) [WebDNA] An unknown error occured // Deadlock avoided (2011) WebCat2: Items xx to xx shown, etc. (1997) unitShipCost - setlineitem (2002) MSSQL - ODBC - OSX (2005) Re:quit command on NT (1997) WebCat2.0b15-to many nested [xx] tags (1997) [WebDNA] Valid input from a post search form (2013) Associative lookup style? (1997) [OT] Games (2005) Gantt style chart (2004) Frames and WebCat (1997) Success Stories (1997) WebCatb15 Mac CGI -- [purchase] (1997) $purchase WITHOUT creditcar (1997)