Re: Showif, Hideif reverse logic ?

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 10297
interpreted = N
texte = > [showif [CANEMAIL]=T]Can EmailYes[/showif]This looks fine, but make absolutely sure the database actually contains both 'T' and 'F'. If it contains 'T' and '' (blank) then your logic may not work the way you think it should.Experiment with [CANEMAIL]=T vs. [CANEMAIL]!T (showif for both)Grant Hulbert, V.P. Engineering | Tools for WebWarriors Pacific Coast Software | WebCatalog, WebCommerce Solution 11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMaster San Diego, CA 92128 | 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Showif, Hideif reverse logic ? (Grant Hulbert 1997)
  2. Showif, Hideif reverse logic ? (Sven U. Grenander 1997)
> [showif [CANEMAIL]=T]Can EmailYes[/showif]This looks fine, but make absolutely sure the database actually contains both 'T' and 'F'. If it contains 'T' and '' (blank) then your logic may not work the way you think it should.Experiment with [CANEMAIL]=T vs. [CANEMAIL]!T (showif for both)Grant Hulbert, V.P. Engineering | Tools for WebWarriors Pacific Coast Software | WebCatalog, WebCommerce Solution 11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMaster San Diego, CA 92128 | 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Grant Hulbert

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:

notification solutions (1997) Colors (2000) Associative lookup style? + bit more (1997) Formulas.db + Users.db (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) SQL Error: 00000 (2004) Question About XML Style Syntax (2000) PCS Frames-Default page is solution! (1997) Line items in table cells (1997) Disappearing HTML/WebDNA (1998) Return records from another (1997) Textarea (1998) WebCat editing, SiteGuard & SiteEdit (1997) WC2.0 Memory Requirements (1997) Error Log.db --however (1997) Denying access by IP address (2000) shipcost (1997) WebDNA Solutions ... sorry! (1997) Serving images from databases (1998) Append..... doesn't (2000)