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 Mitchell E-Business Specialist, PW Group Saskatoon, SK CANADA Tel: (306) 249-9289 Toll-free: (800) 842-5515 Fax: (306) 249-9276 E-Mail: d.mitchell@pwgroup.ca Web: 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:

    
  1. Re: [if] and [showif] - A solution (Brian Fries 2002)
  2. Re: [if] and [showif] - A solution (Donovan Brooke 2002)
  3. Re: [if] and [showif] - A solution (Mark Derrick 2002)
  4. Re: [if] and [showif] - A solution (Mark Derrick 2002)
  5. Re: [if] and [showif] (Andrew Simpson 2002)
  6. Re: [if] and [showif] (Pedro Rivera 2002)
  7. Re: [if] and [showif] (Donovan 2002)
  8. Re: [if] and [showif] (Donovan 2002)
  9. Re: [if] and [showif] - A solution (Rob Marquardt 2002)
  10. Re: [if] and [showif] - A solution (Donovan 2002)
  11. Re: [if] and [showif] - A solution (Mark Derrick 2002)
  12. Re: [if] and [showif] - A solution (John Peacock 2002)
  13. Re: [if] and [showif] - A solution (Grant Hulbert 2002)
  14. Re: [if] and [showif] - A solution (Mark Derrick 2002)
  15. Re: [if] and [showif] (Mark Derrick 2002)
  16. Re: [if] and [showif] (Dan Strong 2002)
  17. Re: [if] and [showif] (Alex McCombie 2002)
  18. Re: [if] and [showif] (Dan Strong 2002)
  19. Re: [if] and [showif] (Mark Derrick 2002)
  20. Re: [if] and [showif] (Daryl Mitchell 2002)
  21. Re: [if] and [showif] (Dan Strong 2002)
  22. Re: [if] and [showif] (Mark Derrick 2002)
  23. Re: [if] and [showif] (Dan Strong 2002)
  24. Re: [if] and [showif] (Mark Derrick 2002)
  25. Re: [if] and [showif] (Mark Derrick 2002)
  26. Re: [if] and [showif] (Gary Krockover 2002)
  27. [if] and [showif] (Mark Derrick 2002)
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 Mitchell E-Business Specialist, PW Group Saskatoon, SK CANADA Tel: (306) 249-9289 Toll-free: (800) 842-5515 Fax: (306) 249-9276 E-Mail: d.mitchell@pwgroup.ca Web: 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:

RE: WebCatalog2 for NT Beta Request (1997) quantity minimum problem (1997) Insert Line Feed Character (2004) no global [username] or [password] displayed ... (1997) Editing Users.db (1997) [lookup] speed sales pitch (2003) Tracking inbound links for discounts (1997) WebDNA 6 on RH - Can you send me your packages list? (2006) test for John (1999) [WebDNA] sudo WebCatalogCtl stop won't work (2016) Dubble Sku's in a Database (1999) can WC render sites out? (1997) Make sure I understand this??? (1997) still facing truncated [texta] problem (2000) How to show via drop down menu? (2000) showcart problem, HELP! (1999) help with grep (2008) listfiles with large volume of files (2004) Help with Repost Data msg from form (1997) Setting up shop (1997)