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.comWebMaster - eCommerce SpecialistMacSultantsProfessional Solutions for Computer SystemsPhone# 856-273-3255Fax# 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:
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.comWebMaster - eCommerce SpecialistMacSultantsProfessional Solutions for Computer SystemsPhone# 856-273-3255Fax# 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
[taxRate] [TaxTotal] ? (1997)
Pass a form (2003)
Reversed words (1997)
Banners (1997)
WC2 or 3: Displaying Search Result Relevance (1998)
ShowNext (1997)
ReturnRaw context (1997)
Using Plug-In while running 1.6.1 (1997)
Logical and or in [hideif] (1997)
Error Log.db --however (1997)
[showif] with ! (2000)
[writefile] (1997)