Re: [WebDNA] showif with empty variable
This WebDNA talk-list message is from 2015
It keeps the original formatting.
numero = 112177
interpreted = N
texte = Doesn't matter how they are passed, they are all "formvariables"whether passed via form or URL.Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comWeb Database Systems and Linux Server ManagementOn 03/14/2015 09:23 AM, Steve Braun wrote:> Kenneth: Your solution sure makes sense,  except my [selector]> variables are passed in the URL, so I wasn't able to test it.  But> thanks for the input.  I just might use that knowledge on other> projects.> sfb> > > > Stephen F Braun> sbraun1@twcny.rr.com 
> > On Sat, Mar 14, 2015 at 9:36 AM, Steve Braun  > wrote:> >     Thanks folks.>     The use of the [raw] tag made it work.> >     I should have defined my variable [selector] for you better.  >     [selector] is my page navigation variable.>     It's set only by menu selections, so there is no chance of it>     being full of any unwanted characters.>     So I don't worry about using a [url]> >     When my site first launches,  [selector] is empty, because no>     menu selections have been made yet.>     This is why I was trying to test  for when it would be empty.> >     Thanks again for the help.>     sfb> > > > > >     Stephen F Braun>     sbraun1@twcny.rr.com > >     On Fri, Mar 13, 2015 at 8:36 PM, Donovan Brooke>     > wrote:> >         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 selector]=F]>          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:> >>         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.>>>>         This works:>>         [showif [selector]=home]    [include home_page.inc]  >>         [/showif]   >>         [showif [selector]=local]    [include local_page.inc]  >>         [/showif]   >>>>         How do I make this work?>>         [showif [selector]=]    [include blank_page.inc]  >>         [/showif]   >>>>         Thanks for any assistance.>>>>         Stephen F Braun>>         sbraun1@twcny.rr.com >>         --------------------------------------------------------- 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 ____>         --------------------------------------------------------->         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 > > > > --------------------------------------------------------- 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
Associated Messages, from the most recent to the oldest:
Doesn't matter how they are passed, they are all "formvariables"whether passed via form or URL.Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comWeb Database Systems and Linux Server ManagementOn 03/14/2015 09:23 AM, Steve Braun wrote:> Kenneth: Your solution sure makes sense,  except my [selector]> variables are passed in the URL, so I wasn't able to test it.  But> thanks for the input.  I just might use that knowledge on other> projects.> sfb> > > > Stephen F Braun> sbraun1@twcny.rr.com > > On Sat, Mar 14, 2015 at 9:36 AM, Steve Braun  > wrote:> >     Thanks folks.>     The use of the [raw] tag made it work.> >     I should have defined my variable [selector] for you better.  >     [selector] is my page navigation variable.>     It's set only by menu selections, so there is no chance of it>     being full of any unwanted characters.>     So I don't worry about using a [url]> >     When my site first launches,  [selector] is empty, because no>     menu selections have been made yet.>     This is why I was trying to test  for when it would be empty.> >     Thanks again for the help.>     sfb> > > > > >     Stephen F Braun>     sbraun1@twcny.rr.com > >     On Fri, Mar 13, 2015 at 8:36 PM, Donovan Brooke>     > wrote:> >         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 selector]=F]>          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:> >>         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.>>>>         This works:>>         [showif [selector]=home]    [include home_page.inc]  >>         [/showif]   >>         [showif [selector]=local]    [include local_page.inc]  >>         [/showif]   >>>>         How do I make this work?>>         [showif [selector]=]    [include blank_page.inc]  >>         [/showif]   >>>>         Thanks for any assistance.>>>>         Stephen F Braun>>         sbraun1@twcny.rr.com >>         --------------------------------------------------------- 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 ____>         --------------------------------------------------------->         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 > > > > --------------------------------------------------------- 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
Kenneth Grome 
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:
 
Is there a max number of fields? (1998)
 
Re:quit command on NT (1997)
 
[Sum] function? (1997)
 
Order not created error (1997)
 
WebCat2b12--[searchstring] bug (1997)
 
WebCatalog Hosting (1996)
 
Re:Emailer and encryption (1997)
 
 Robust WebDNA Job Manager / Accountant (2006)
 
WC1.6 to WC2  date formatting (1997)
 
OK, here goes... (1997)
 
Summing fields (1997)
 
Variable Prices (1998)
 
Using Applescript to process WebCatalog functions (1998)
 
[WebDNA] reverse rank=off (2008)
 
Message Board (again:-) (2000)
 
about this server and links to who (1997)
 
More questions about serial number dishing (1997)
 
Updating a database once per day - An example (1998)
 
2.0Beta Command Ref (can't find this instruction) (1997)
 
WebMerchant 1.6 and https (1997)