Re: Showif date range comparison

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24094
interpreted = N
texte = >Kenneth: >Thanks for the info. I ended up with > >[showif [math]{[Shipdate]}[/math]>[week1]][Minutes][/showif] > >which works fine. > >Now, is there a way to make multiple comparisons without having to use >multiple embedded [showif]s?There's no way to do what you 'really' want to do, but ...You can use sequential showif's instead of embedding them, then put the results of each showif in a [text] or [math] variable for use further on down the page. Sequential showif's may or may not be faster than embedded showif's, I would need to hear what Grant thinks about it, but I would *assume* that embedding is slower because it requires more internal calculations ...Sincerely, Kenneth Grome WebDNA Consultant Associated Messages, from the most recent to the oldest:

    
  1. Re: Showif date range comparison (Kenneth Grome 1999)
  2. Re: Showif date range comparison (es-sleestak 1999)
  3. Re: Showif date range comparison (Ben Weinberg 1999)
  4. Re: Showif date range comparison (Kenneth Grome 1999)
  5. Re: Showif date range comparison (Ben Weinberg 1999)
  6. Re: Showif date range comparison (John Jakovich 1999)
  7. Showif date range comparison (Ben Weinberg 1999)
>Kenneth: >Thanks for the info. I ended up with > >[showif [math]{[Shipdate]}[/math]>[week1]][Minutes][/showif] > >which works fine. > >Now, is there a way to make multiple comparisons without having to use >multiple embedded [showif]s?There's no way to do what you 'really' want to do, but ...You can use sequential showif's instead of embedding them, then put the results of each showif in a [text] or [math] variable for use further on down the page. Sequential showif's may or may not be faster than embedded showif's, I would need to hear what Grant thinks about it, but I would *assume* that embedding is slower because it requires more internal calculations ...Sincerely, Kenneth Grome WebDNA Consultant 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:

WebCat2 beta 11 - new prefs ... (1997) Grant, please help me ... (1997) how to do multiple prices/item? (1998) [delete] problem (1997) Out of the woodwork (2007) Sort Order on a page search (1997) [quantity] within formulas (1997) UPDATE PROBLEM (1997) [CART] inside a [LOOP] (1997) Sendmail Problems (2003) Country & Ship-to address & other fields ? (1997) Serious bug writing to a database ... (2002) taxRate is fine but taxTotal isn't (1997) UPDATE PROBLEM (1997) Changing user submitted data (2000) The future of WebCatalog is coming with 4.0... (2000) 5.0 feature request: (2001) using showpage and showcart commands (1996) Tech question about web dna actions (1998) Banners (1997)