IF/THEN, SHOWIF, and/or HIDEIF

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 68933
interpreted = N
texte = An external program is going to generate a URL that has the following variables: Setifunction Setiuser Password Code The following variables may or may not be present: Startnum Batchsize I have this piece of code that will check for the required variables: [IF (("[setiuser]"="username") & ("[password]"="password") & ("[setifunction]"="somefunction") & ("[code]"="somecode"))] How can I modify the above code to require startnum, batchsize, or startnum AND batchsize IF these variables are passed through the url? Here are three examples of valid urls: https://www.mystore.com/script.ext?setifunction=downloadprods&setiuser=usern ame&password=password&code=somecode https://www.mystore.com/script.ext?setifunction=downloadprods&setiuser=usern ame&password=password&code=somecode&batchsize=1000 https://www.mystore.com/script.ext?setifunction=downloadprods&setiuser=usern ame&password=password&code=somecode&batchsize=1000&startnum=1 ------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: IF/THEN, SHOWIF, and/or HIDEIF ( Stuart Tremain 2007)
  2. IF/THEN, SHOWIF, and/or HIDEIF ( Ki Song 2007)
An external program is going to generate a URL that has the following variables: Setifunction Setiuser Password Code The following variables may or may not be present: Startnum Batchsize I have this piece of code that will check for the required variables: [IF (("[setiuser]"="username") & ("[password]"="password") & ("[setifunction]"="somefunction") & ("[code]"="somecode"))] How can I modify the above code to require startnum, batchsize, or startnum AND batchsize IF these variables are passed through the url? Here are three examples of valid urls: https://www.mystore.com/script.ext?setifunction=downloadprods&setiuser=usern ame&password=password&code=somecode https://www.mystore.com/script.ext?setifunction=downloadprods&setiuser=usern ame&password=password&code=somecode&batchsize=1000 https://www.mystore.com/script.ext?setifunction=downloadprods&setiuser=usern ame&password=password&code=somecode&batchsize=1000&startnum=1 ------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Ki Song

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:

Dumb Question about Docs (1997) Upgrading from 2.1 to 3.0.7 (2000) Bug or syntax error on my part? (1997) Requiring that certain fields be completed (1997) RE: [WebDNA] CICADA (2009) Secure server question (1997) Emailer Question (1998) Just Testing (1997) Time for a hard questions. (1997) Can't load tmpl files (1997) $adminput doesn't allow [include] files (1997) Memory Leak (2000) [WebDNA] postfix and dna (2011) I think WebDNA-Talk died ... :( (1997) encrypt (2000) formatting dates from a field ... (1997) [DOS] (1999) Date Sorting (1997) WebCat2b13MacPlugIn - more [date] problems (1997) WebDNA programmers needed (1998)