Re: [if] and [showif]
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45208
interpreted = N
texte = Interestingly enough, I ran your code block and got the exact opposite results. The [showif] evaluated false and didn't show anything, but the [if] evaluated true and showed Yes.If I remove the spaces surrounding the ^ operator inside the [showif], then it evaluates true and shows Yes.>Very odd.>>Both lines of code were tested on the same page, and both were reading the>same variable, but only [showif] seemed able to find the content.>>Back to the drawing board! :-)>>>>on 13/11/02 2:42 pm, Gary Krockover at gary@garykrockover.com wrote:>>> This equates to yes for me:>>>> [text]variable=SomeText[/text]>> [if [variable] ^ SomeText]>> [then]Yes[/then]>> [else]No[/else]>> [/if]>>>> as does this...>>>> [text]variable=SomeText[/text]>> [if (([variable])^(SomeText))]>> [then]Yes[/then]>> [else]No[/else]>> [/if]>>>> Sure your variable contains the text that you think it does?>>>> GK>>>>>>>>> Why does:>>>>>> [showif [variable] ^ SomeText]Yes[/showif]>>>>>> Return yes, but:>>>>>> [if [variable] ^ SomeText]>>> [then]Yes[/then]>>> [else]No[/else]>>> [/if]>>>>>> Return no?>>>>>>>>> Thanks.>>>>>> ------------------------------------------------------------->> 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>> >> Web Archive of this list is at: http://search.smithmicro.com/>>>------------------------------------------------------------->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 >>Web Archive of this list is at: http://search.smithmicro.com/-- Daryl MitchellE-Business Specialist, PW GroupSaskatoon, SK CANADATel: (306) 249-9289Toll-free: (800) 842-5515Fax: (306) 249-9276E-Mail: d.mitchell@pwgroup.caWeb: http://www.pwgroup.ca/-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Interestingly enough, I ran your code block and got the exact opposite results. The [showif] evaluated false and didn't show anything, but the [if] evaluated true and showed Yes.If I remove the spaces surrounding the ^ operator inside the [showif], then it evaluates true and shows Yes.>Very odd.>>Both lines of code were tested on the same page, and both were reading the>same variable, but only [showif] seemed able to find the content.>>Back to the drawing board! :-)>>>>on 13/11/02 2:42 pm, Gary Krockover at gary@garykrockover.com wrote:>>> This equates to yes for me:>>>> [text]variable=SomeText[/text]>> [if [variable] ^ SomeText]>> [then]Yes[/then]>> [else]No[/else]>> [/if]>>>> as does this...>>>> [text]variable=SomeText[/text]>> [if (([variable])^(SomeText))]>> [then]Yes[/then]>> [else]No[/else]>> [/if]>>>> Sure your variable contains the text that you think it does?>>>> GK>>>>>>>>> Why does:>>>>>> [showif [variable] ^ SomeText]Yes[/showif]>>>>>> Return yes, but:>>>>>> [if [variable] ^ SomeText]>>> [then]Yes[/then]>>> [else]No[/else]>>> [/if]>>>>>> Return no?>>>>>>>>> Thanks.>>>>>> ------------------------------------------------------------->> 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>> >> Web Archive of this list is at: http://search.smithmicro.com/>>>------------------------------------------------------------->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 >>Web Archive of this list is at: http://search.smithmicro.com/-- Daryl MitchellE-Business Specialist, PW GroupSaskatoon, SK CANADATel: (306) 249-9289Toll-free: (800) 842-5515Fax: (306) 249-9276E-Mail: d.mitchell@pwgroup.caWeb: http://www.pwgroup.ca/-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
Daryl Mitchell
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] Comparisons in "if" and "case" statements (2010)
Next (1997)
Server slowing down. (1997)
Emailer Problem (1999)
using a link like http://www.domain.com/username (2000)
XML Parse with XML WebDNA Syntax... (2004)
emailer stuck (1997)
Setting up shop (1997)
Can WC remember people? (1998)
Sorting error (1997)
WebCat2b12 CGI Mac - [shownext] problem (1997)
Unexpected comparison behavior change in 4.5.1 (2003)
ErrorMessages.db suggestion (1997)
Absolute path (2003)
More on the email templates (1997)
OT: Just for a waste of time (2003)
WebCat & Liststar (1997)
apostrophe in search item (1997)
Fun with Dates (syntax) (2002)
Re:no template caching (1997)