Re: Variables containing ! breaking HIDEIF's

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24801
interpreted = N
texte = wrap both sides of the showif in [url][/url]ex: [HIDEIF [url]foo![/url]=[url][ANSWERC1][/url]]foo![/HIDEIF]- charles>Greetings.. > >I am currently sporting a brand new headache brought on by HIDEIF's.. >Here is a clipping from a test program that shows the problem: > > > >[TEXT SHOW=T]ANSWERC1=foo![/TEXT]
>.
>[LOOP START=1&END=1] >[HIDEIF >[INTERPRET][ANSWERC[INDEX]][/INTERPRET]=[RAW][ANSWERC[/RAW][INDEX][RAW]][/RAW]] >[INTERPRET][ANSWERC[INDEX]][/INTERPRET][/HIDEIF] >[/LOOP] >
>. > >The periods are there strictly to make viewing the output a little >easier.. > >It seems that the hideif statement interprets this as: > >[HIDEIF foo!=[ANSWERC1]]foo![/HIDEIF] > >As you can see, this is not going to display the contents of the hideif >because the ! is switching it to !=.. It is my belief that the contents of >a variable should not affect the comparisons.. I need a way to make >webdna interpret the ! as part of the left side of the equation. > >Is this a bug? If not, any ideas out there? -- _______________________________________________________________ Charles Kline ckline@macsultants.com WebMaster - eCommerce SpecialistMacSultants Professional Solutions for Computer SystemsPhone# 856-273-3255 Fax# 856-273-3721 ------------------------------------------------------------- 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: Variables containing ! breaking HIDEIF's (Charles Kline 1999)
  2. Variables containing ! breaking HIDEIF's (100-Watt Puppeteer 1999)
wrap both sides of the showif in [url][/url]ex: [HIDEIF [url]foo![/url]=[url][ANSWERC1][/url]]foo![/HIDEIF]- charles>Greetings.. > >I am currently sporting a brand new headache brought on by HIDEIF's.. >Here is a clipping from a test program that shows the problem: > > > >[TEXT SHOW=T]ANSWERC1=foo![/TEXT]
>.
>[LOOP START=1&END=1] >[HIDEIF >[interpret][ANSWERC[INDEX]][/INTERPRET]=[raw][ANSWERC[/RAW][INDEX][raw]][/RAW]] >[interpret][ANSWERC[INDEX]][/INTERPRET][/HIDEIF] >[/LOOP] >
>. > >The periods are there strictly to make viewing the output a little >easier.. > >It seems that the hideif statement interprets this as: > >[HIDEIF foo!=[ANSWERC1]]foo![/HIDEIF] > >As you can see, this is not going to display the contents of the hideif >because the ! is switching it to !=.. It is my belief that the contents of >a variable should not affect the comparisons.. I need a way to make >webdna interpret the ! as part of the left side of the equation. > >Is this a bug? If not, any ideas out there? -- _______________________________________________________________ Charles Kline ckline@macsultants.com WebMaster - eCommerce SpecialistMacSultants Professional Solutions for Computer SystemsPhone# 856-273-3255 Fax# 856-273-3721 ------------------------------------------------------------- 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 Charles Kline

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:

Ok here is a question? (1997) [INCLUDE] Limitations (1998) Pulling Captions from JPGs (2003) Pager notification of completed orders (1998) Problems setting MIME Headers (1998) sandbox is hogging 99% cpu cycles (2004) Online reference (1997) off topic