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:

Checkboxes (1998) WebCatalog can't find database (1997) RAM crash (1998) Empty Shopping Carts (1998) customer info (2001) The IBC root beer has arrived! (1997) Suggestions (1998) Summary layout (1997) Bad cookie (1998) Europe, (1998) Triggers (2001) searching for items that begin with a number (2004) Re:Off Topic- THANKS to EVERYBODY!!! (1999) contextual shownext (1998) [WebDNA] New Mountain Lion OSX Server (2013) cookies (2002) Secure Server (1997) referrer variable (1997) [TaxableTotal] - not working with AOL and IE (1997) WC1.6 to WC2 date formatting (1997)