Re: [WebDNA] showif with empty variable

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112173
interpreted = N
texte = --Apple-Mail-A08FD6E5-23D1-440F-BA04-4AE0E1D2BC25 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Skinning the cat (if you need to check for both blank and raw):=20 [ShowIf |[raw][selector][/raw]||^|[selector]|] Ain't no value for selector [/ShowIf] Alternatively, in my standard function lib, I have a php-like 'IsSet' functi= on. [ShowIf [isSet selector]=3DF] 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: >=20 > 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. >=20 > This works: > [showif [selector]=3Dhome] [include home_page.inc] [/showif] =20 > [showif [selector]=3Dlocal] [include local_page.inc] [/showif] =20 >=20 > How do I make this work? > [showif [selector]=3D] [include blank_page.inc] [/showif] =20 >=20 > Thanks for any assistance. >=20 > Stephen F Braun > sbraun1@twcny.rr.com > --------------------------------------------------------- This message is s= ent 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 --Apple-Mail-A08FD6E5-23D1-440F-BA04-4AE0E1D2BC25 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
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 select= or]=3DF]
 Ain't no value for selector
[/ShowIf]

(I think that is the syntax.. Away from my office at p= resent)

D. Brooke Mobile

On Mar 13, 2015, at 5:59 PM, S= teve Braun <sbraun1@twcny.rr.com<= /a>> wrote:

--------------------------------------------------------- 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
= --Apple-Mail-A08FD6E5-23D1-440F-BA04-4AE0E1D2BC25-- 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)
--Apple-Mail-A08FD6E5-23D1-440F-BA04-4AE0E1D2BC25 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Skinning the cat (if you need to check for both blank and raw):=20 [ShowIf |[raw][selector][/raw]||^|[selector]|] Ain't no value for selector [/ShowIf] Alternatively, in my standard function lib, I have a php-like 'IsSet' functi= on. [ShowIf [isSet selector]=3DF] 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: >=20 > 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. >=20 > This works: > [showif [selector]=3Dhome] [include home_page.inc] [/showif] =20 > [showif [selector]=3Dlocal] [include local_page.inc] [/showif] =20 >=20 > How do I make this work? > [showif [selector]=3D] [include blank_page.inc] [/showif] =20 >=20 > Thanks for any assistance. >=20 > Stephen F Braun > sbraun1@twcny.rr.com > --------------------------------------------------------- This message is s= ent 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 --Apple-Mail-A08FD6E5-23D1-440F-BA04-4AE0E1D2BC25 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
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 select= or]=3DF]
 Ain't no value for selector
[/ShowIf]

(I think that is the syntax.. Away from my office at p= resent)

D. Brooke Mobile

On Mar 13, 2015, at 5:59 PM, S= teve Braun <sbraun1@twcny.rr.com<= /a>> wrote:

--------------------------------------------------------- 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
= --Apple-Mail-A08FD6E5-23D1-440F-BA04-4AE0E1D2BC25-- Donovan Brooke

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:

Showif date > other date (2004) [/application] error? (1997) Re:2nd WebCatalog2 Feature Request (1996) [replaceChars] would be nice ... (1997) [protect] on NT? (1997) error: Too many nested [xxx] contexts (1997) ooops...WebCatalog [FoundItems] Problem - LONG - (1997) RE: Automatic thumbnail images (1998) database size? (1997) Date search - yes or no (1997) Re:FYI: Error message (1996) Sami (1998) FW: ANother SHOWIF problem (1997) [WebDNA] OT: PHP on lighttpd (2013) Separate SSL Server (1997) search form problem.. (1997) Sort Order on a page search (1997) Emailer setup (1997) RE: [input] formating (1998) Help name our technology! (1997)