Newbie Question about a Logical AND in a show if statement....

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24617
interpreted = N
texte = I want to 'calculate' the value of an AGE category text field when the user inputs 2 different dates in a form.I have: [showif {[date_one]}-{[date_two]}<30]Neotal less than 30 days old[/showif] [showif {[date_one]}-{[date_two]}<365]Infant less than one year[/showif]but both are true if it is less than 30, how do I incorporate a Logical and?(please note this is 'mock code' below is only to illustrate what I would like to do)[showif ({[date_one]}-{[date_two]}<365) and ({[date_one]}-{[date_two]}>29)] Infant less than one year [/showif]How would I do this in WebCat?HELP! I've done a little C++ and JavaScript and Scripting in FMP(which is a cinch!) but this has me stumped!!! -- Eric Ridgley, Web/Graphic Designer...............Phone: 330.630.4487 Silver Creek, Ltd. ...............Fax: 330.630.5786 143 Northwest Avenue, Suite B101 ...............URL: www.silvercreek.net/ Tallmadge Ohio 44278 ...............URL: www.ridgley.org/------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: Newbie Question about a Logical AND in a show if statement.... (Josh Tiger 1999)
  2. Newbie Question about a Logical AND in a show if statement.... (Eric Ridgley 1999)
I want to 'calculate' the value of an AGE category text field when the user inputs 2 different dates in a form.I have: [showif {[date_one]}-{[date_two]}<30]Neotal less than 30 days old[/showif] [showif {[date_one]}-{[date_two]}<365]Infant less than one year[/showif]but both are true if it is less than 30, how do I incorporate a Logical and?(please note this is 'mock code' below is only to illustrate what I would like to do)[showif ({[date_one]}-{[date_two]}<365) and ({[date_one]}-{[date_two]}>29)] Infant less than one year [/showif]How would I do this in WebCat?HELP! I've done a little C++ and JavaScript and Scripting in FMP(which is a cinch!) but this has me stumped!!! -- Eric Ridgley, Web/Graphic Designer...............Phone: 330.630.4487 Silver Creek, Ltd. ...............Fax: 330.630.5786 143 Northwest Avenue, Suite B101 ...............URL: www.silvercreek.net/ Tallmadge Ohio 44278 ...............URL: www.ridgley.org/------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Eric Ridgley

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:

can WC render sites out? (1997) OFF TOPIC: help wanted (1997) unsubscribe (2000) [/application] error? (1997) ichat (2003) Multiple catalog databases and showcart (1997) Quitting WebMerchant ? (1997) emailer (1997) WebMerchant and PCAuthorize (1998) OT: javascript help (2003) How to add product size choices to form? (1997) Great product and great job ! (1997) Major Security Hole IIS NT (1998) Unable to view next 101-200 (1997) [append] and SSL (1997) RAM variables (1997) Likelihood of a duplicate (Palle you around?) (2005) SKU lookup (1997) Formulas.db + Users.db (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)