Re: [ShowIf] if the varieable exists

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20292
interpreted = N
texte = On 10/8/98 10:23 AM Mike Eberly wrote >I understand that normally you would put the [ShowIf] context followed >by the equation. >ex: [ShowIf [wogroup1datarq]=Mustang]Car[/ShowIf] >However, there will not always be an existing variable called >[wogroup1datarq]. Instead, I would like to [ShowIf] if the variable >[wogroup1datarq] exists. How can I do this?I just got done doing this. It was a blast on top of it I had added complications. Here is the code I created. Basically I used the formvariable tag to extract the information I wanted. What a hoot, Do that with asp![formvariables] [math show=f]num2=[index][/math] [showif [num2]=[num1]] [text show=f]rt[num3]=[value][/text] [/showif] [showif [name]^state] [math show=f]num1=[index]+1[/math] [math show=f]num3=num3+1[/math] [text show=f]st[num3]=[value][/text] [/showif] [/formvariables]basically I asked if to show any formvariables that contain the word state, then I needed the very next formvariable so I created a routine to grab it as well. of course all the math [num*] variable were initial set to zero.The page prior was submitting a series of checkboxes associated with text boxes and I didn't want to write a [showif] for every possiblity additionall the check boxes are created with a database so the number of fields itself could vary. enjoy :) Robert Minor _________________________________________________________________________ Cybermill Communications webmaster@cybermill.com 8616 Joseph Ave. http://www.cybermill.com St. Louis, MO 63144 (314) 962-4024 _________________________________________________________________________ Purveyors of fine websites and high bandwith. Colocation and domain hosting available. Associated Messages, from the most recent to the oldest:

    
  1. Re: [ShowIf] if the varieable exists (Grant Hulbert 1998)
  2. Re: [ShowIf] if the varieable exists (Scott Szretter 1998)
  3. Re: [ShowIf] if the varieable exists (Howard Wolosky 1998)
  4. Re: [ShowIf] if the varieable exists (Howard Wolosky 1998)
  5. Re: [ShowIf] if the varieable exists (Howard Wolosky 1998)
  6. Re: [ShowIf] if the varieable exists (bob 1998)
  7. Re: [ShowIf] if the varieable exists (Howard Wolosky 1998)
  8. Re: [ShowIf] if the varieable exists (Christer Olsson 1998)
  9. Re: [ShowIf] if the varieable exists (PCS Technical Support 1998)
  10. [ShowIf] if the varieable exists (Mike Eberly 1998)
On 10/8/98 10:23 AM Mike Eberly wrote >I understand that normally you would put the [showif] context followed >by the equation. >ex: [ShowIf [wogroup1datarq]=Mustang]Car[/ShowIf] >However, there will not always be an existing variable called >[wogroup1datarq]. Instead, I would like to [showif] if the variable >[wogroup1datarq] exists. How can I do this?I just got done doing this. It was a blast on top of it I had added complications. Here is the code I created. Basically I used the formvariable tag to extract the information I wanted. What a hoot, Do that with asp![formvariables] [math show=f]num2=[index][/math] [showif [num2]=[num1]] [text show=f]rt[num3]=[value][/text] [/showif] [showif [name]^state] [math show=f]num1=[index]+1[/math] [math show=f]num3=num3+1[/math] [text show=f]st[num3]=[value][/text] [/showif] [/formvariables]basically I asked if to show any formvariables that contain the word state, then I needed the very next formvariable so I created a routine to grab it as well. of course all the math [num*] variable were initial set to zero.The page prior was submitting a series of checkboxes associated with text boxes and I didn't want to write a [showif] for every possiblity additionall the check boxes are created with a database so the number of fields itself could vary. enjoy :) Robert Minor _________________________________________________________________________ Cybermill Communications webmaster@cybermill.com 8616 Joseph Ave. http://www.cybermill.com St. Louis, MO 63144 (314) 962-4024 _________________________________________________________________________ Purveyors of fine websites and high bandwith. Colocation and domain hosting available. bob

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:

Max Record length (1997) SERIAL NUMBER PROBLEM *AGAIN*!!! (1998) [WebDNA] Conditional search (2009) Adding up weights (1998) Fulfillment e-mail? (1998) Re1000001: Setting up shop (1997) WC2.0 Memory Requirements (1997) Solution: Mult-File Upload w/ Web Star (2000) WebCatalog Upgrade Pricing? (1997) syntax question, not in online refernce (1997) [group] ? (1997) IE 6 HTTP Post (2004) # fields limited? (1997) Re:no [search] with NT (1997) Physical Security for WebCatalog Directories (1997) Format question WC Mac f3 (1997) Problems with date math (1997) [WebDNA] Best Linux distro for a dedicated webdna server? (2011) newcart (1997) Cookies and webcat (1997)