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:

refresh (2000) Automatic thumbnail images (1998) Emailer Problem (1998) General WebCatalog Questions (1997) Requiring that certain fields be completed (1997) passwords not working (2000) Searching Relational Databases (2004) WebDNA for Dummies (2007) RE:It just Does't add up!!! (1997) [WebDNA] Help with ReplaceFoundItems (2009) More help for discount pricing (1998) looping table rows (1999) Setting up shop (1997) Refering page (1998) Re:no [search] with NT (1997) WebCat NT v. Mac (1997) WebCat2b12 forgets serial # (1997) Why would prices no appear in cart (2000) [Lookup] on secure page not returning anything (2000) tricky embedded[showifs/hideifs] (w/ code.. long) (2000)