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 (1997) What is the syntax for MIME type on Apache server? (2000) WebDNA performance comparisons? (2004) WebCatalog 4.0.1b1 is now available (2000) 4.51 Triggers (2003) WebCat2b15MacPlugin - showing [math] (1997) OT - royalty free images (2002) snicker, snicker (1997) Configuring E-mail (1997) Num Sort Descending (2004) [IpAddress] Tag (1997) date (1998) Authenticate (1997) New commands in Final candidate (1997) Separate SSL Server (1997) [protect admin] (1997) Multiple prices (1997) pulldown menu differences (2005) Error Lob.db records error message not name (1997) updating with ProductEditor (1998)