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.com8616 Joseph Ave. http://www.cybermill.comSt. 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:
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.com8616 Joseph Ave. http://www.cybermill.comSt. 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:
[WebDNA] WebDNA Shipping rate quotes API (2011)
How do you hide [math]stuff[/math] (1997)
CC and Europe (1999)
Has ANYONE gotten the [object] context to work with Java(OSX) ??? HELP! (2002)
WebTEN vs webSTAR (1998)
WebCat for Unix?? (1997)
"Advanced" Search Algorithm (2008)
Erotic Sites (1997)
Add to Cart & List of Products (1997)
carriage returns in data (1997)
Multiple ShipTo Addresses (2003)
WebCat2.0 [format thousands .0f] no go (1997)
WebCat for mass emailings (1997)
Pop-up menu (1998)
Upgrading from version (1998)
TRAINING videos - Prove IT. (1998)
Banners (1997)
WebCat2b13MacPlugIn - syntax to convert date (1997)
HELP!? (2002)
FM PRO Compatibility Issue - Single Database w/o Conversions (1997)