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:

WebDNA Solutions ... sorry! (1997) SKU lookup (1997) Checkboxes (1998) command=purchase (2000) Table sorting by selected category then others (2004) WebCatalog2 Feature Feedback (1996) WCf2 and nested tags (1997) [WebDNA] Cost to upgrade WebDNA 6.2 to run on Win2008 / Win7 (2012) Attention all list readers (1997) [searchString] (1997) Bad URL reference? (1997) [WebDNA] Triggers not working (2014) [WebDNA] fastcgi 7+ & [cart]? (2010) Ampersand (1997) Help! WebCat2 bug (1997) 5.0 Preview Promotion Extension (2003) WebCat2b13MacPlugIn - syntax to convert date (1997) Runnaway Trigger (2007) [WebDNA] Installing 7.1.702 on CentOS (2012) Password problems with WebCat 4.01 (2000)