Re: [WebDNA] [raw] tag with [interpret] question

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105730
interpreted = N
texte = If that's your initial loop, isn't _alpha always "[_alpha_3]" so all the hideifs show CODE in a numfound=3D1 situation? Would a hideif numfound=3D1 work better? Bill On Sat, Aug 28, 2010 at 7:51 AM, Suzanne Swift wro= te: > Hi everyone, > > This may be a simple fix, but I haven't been able to come up with a > solution.=A0 Anyone know the answer? > > I've created a variable: > [text]_Alpha=3D[interpret][_ > Alpha_[index]][/interpret][/text] > > which is within a loop: > [loop start=3D1&end=3D3] > > both of the above follow a search: > > =A0=A0=A0 [search > db=3Dmydatabase.db&eqClientIDdatarq=3D[_ClientID]&neAlphadatarq=3D[blank]= &neDate_Addeddatarq=3D[blank]&Alphasumm=3DT&deDate_Addedsort=3D1&max=3D3] > =A0=A0=A0 [text]AddedResourcesFound=3D[numfound][/text] > > =A0=A0=A0 =A0=A0=A0 [founditems] > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 [text]_ManSerialNum_[index]=3D[ManSerialNum= ber][/text] > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 [text]_Alpha_[index]=3D[Alpha][/text] > =A0=A0=A0 =A0=A0=A0 [/founditems] > =A0=A0=A0 [/search] > > > In the case I'm trying to solve, [numfound]=3D1. > > > I want to hide a section of my code if the interpreted variable is raw (i= .e. > [_Alpha_2] or [_Alpha_3]). > > I've tried the following: > =A0[hideif [_Alpha]=3D[interpret][_Alpha_[index]][/interpret]]CODE[/hidei= f] > =A0[hideif > [_Alpha]=3D[raw][interpret][_Alpha_[index]][/interpret][/raw]]CODE[/hidei= f] > =A0 [hideif > [_Alpha]=3D[interpret][raw][_Alpha_[index]][/raw][/interpret]]CODE[/hidei= f] > =A0 [hideif [_Alpha]=3D[raw][_Alpha_[index]][/raw]]CODE[/hideif] > > but none of them work.=A0 I haven't done much coding with [interpret] tag= s. > Is there some other way to hide this code? > > Thanks, > Suzanne > Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] [raw] tag with [interpret] question (Kenneth Grome 2010)
  2. Re: [WebDNA] [raw] tag with [interpret] question (William DeVaul 2010)
  3. Re: [WebDNA] [raw] tag with [interpret] question (Govinda 2010)
  4. Re: [WebDNA] [raw] tag with [interpret] question (William DeVaul 2010)
  5. Re: [WebDNA] [raw] tag with [interpret] question (Suzanne Swift 2010)
  6. Re: [WebDNA] [raw] tag with [interpret] question (Kenneth Grome 2010)
  7. Re: [WebDNA] [raw] tag with [interpret] question (Govinda 2010)
  8. Re: [WebDNA] [raw] tag with [interpret] question (William DeVaul 2010)
  9. [WebDNA] [raw] tag with [interpret] question (Suzanne Swift 2010)
If that's your initial loop, isn't _alpha always "[_alpha_3]" so all the hideifs show CODE in a numfound=3D1 situation? Would a hideif numfound=3D1 work better? Bill On Sat, Aug 28, 2010 at 7:51 AM, Suzanne Swift wro= te: > Hi everyone, > > This may be a simple fix, but I haven't been able to come up with a > solution.=A0 Anyone know the answer? > > I've created a variable: > [text]_Alpha=3D[interpret][_ > Alpha_[index]][/interpret][/text] > > which is within a loop: > [loop start=3D1&end=3D3] > > both of the above follow a search: > > =A0=A0=A0 [search > db=3Dmydatabase.db&eqClientIDdatarq=3D[_ClientID]&neAlphadatarq=3D[blank]= &neDate_Addeddatarq=3D[blank]&Alphasumm=3DT&deDate_Addedsort=3D1&max=3D3] > =A0=A0=A0 [text]AddedResourcesFound=3D[numfound][/text] > > =A0=A0=A0 =A0=A0=A0 [founditems] > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 [text]_ManSerialNum_[index]=3D[ManSerialNum= ber][/text] > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 [text]_Alpha_[index]=3D[Alpha][/text] > =A0=A0=A0 =A0=A0=A0 [/founditems] > =A0=A0=A0 [/search] > > > In the case I'm trying to solve, [numfound]=3D1. > > > I want to hide a section of my code if the interpreted variable is raw (i= .e. > [_Alpha_2] or [_Alpha_3]). > > I've tried the following: > =A0[hideif [_Alpha]=3D[interpret][_Alpha_[index]][/interpret]]CODE[/hidei= f] > =A0[hideif > [_Alpha]=3D[raw][interpret][_Alpha_[index]][/interpret][/raw]]CODE[/hidei= f] > =A0 [hideif > [_Alpha]=3D[interpret][raw][_Alpha_[index]][/raw][/interpret]]CODE[/hidei= f] > =A0 [hideif [_Alpha]=3D[raw][_Alpha_[index]][/raw]]CODE[/hideif] > > but none of them work.=A0 I haven't done much coding with [interpret] tag= s. > Is there some other way to hide this code? > > Thanks, > Suzanne > William DeVaul

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] Shopping cart code debug (2009) [WebDNA] Ubuntu 11.10 (2012) syntax question, not in online refernce (1997) More on the email templates (1997) [WebDNA] PayPal IPN (was: paypal FINALLY!!!!) (2009) IIS error and webcat (2000) ErrorMessages.db suggestion (1997) OH MY GOD! (1998) # fields limited? (1997) Nav. 4 probs with cart - Serious problem (1997) [WebDNA] Encrypted password issue (2009) I give up!! (1997) problems with WebCat-Plugin () Protect (1997) WebCat2b13 Command Reference Doc error (1997) [WebDNA] Quick grep question (2009) Re:2nd WebCatalog2 Feature Request (1996) Date Bug (1998) [WebDNA] SHA1 Encryption For WebDNA 6.2 (2013) WebCat is different user (1999)