Re: quotation marks needed?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33899
interpreted = N
texte = >John Peacock: >Since you didn't tell us what the field contains, but it is always a >good idea to wrap both sides of a comparison with [url] like this: > >[If [url][var1][/url]=[url][var2][/url]]....var1 contained the string: lacie var2 contained the string: lacieI've already tried the [url][var1][/url]=[url][var2][/url] thing, but it didn't work;>WebCat interprets all field/variables and then resolves the [if] itself. >If either field contains a special character (like !=<>), the test will >get confused by the extra character. ok (it is not my case, my values are simple strings with normal chars)>You should never wrap the test >variables with quotes, unless you are using the XML style tags, in which >case all terms must be quoted.I'm not using the XML style tags; I did that quotation trick after reading a mail in at search.smithmicro.com, and it did work! here's the mail:------------------start quote:1999/02/05 20:24:49 Kenneth Grome Re: Protect and Serve >Sounds like [ShowIf] doesn't deal very well if there is nothing before the >comparison operator. Try turning the comparisons around: ..... >Or put some kind of identical character(s) on both sides of the comparison, such as quotation marks for example ... [ShowIf [username]!Some_Username] [authenticate] [/ShowIf] [ShowIf [password]!Some_Password] [authenticate] [/ShowIf] Sincerely, Ken Grome ------------------end quote:what does Ken think about that? tnxs _ _ |_)| / \ |_)|_\_/------------------------------------------------------------- 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: quotation marks needed? (Kenneth Grome 2000)
  2. Re: quotation marks needed? (blo 2000)
  3. Re: quotation marks needed? (blo 2000)
  4. Re: quotation marks needed? (WebDNA Support 2000)
  5. Re: quotation marks needed? (John Peacock 2000)
  6. quotation marks needed? (blo 2000)
>John Peacock: >Since you didn't tell us what the field contains, but it is always a >good idea to wrap both sides of a comparison with [url] like this: > >[If [url][var1][/url]=[url][var2][/url]]....var1 contained the string: lacie var2 contained the string: lacieI've already tried the [url][var1][/url]=[url][var2][/url] thing, but it didn't work;>WebCat interprets all field/variables and then resolves the [if] itself. >If either field contains a special character (like !=<>), the test will >get confused by the extra character. ok (it is not my case, my values are simple strings with normal chars)>You should never wrap the test >variables with quotes, unless you are using the XML style tags, in which >case all terms must be quoted.I'm not using the XML style tags; I did that quotation trick after reading a mail in at search.smithmicro.com, and it did work! here's the mail:------------------start quote:1999/02/05 20:24:49 Kenneth Grome Re: Protect and Serve >Sounds like [showif] doesn't deal very well if there is nothing before the >comparison operator. Try turning the comparisons around: ..... >Or put some kind of identical character(s) on both sides of the comparison, such as quotation marks for example ... [ShowIf [username]!Some_Username] [authenticate] [/ShowIf] [ShowIf [password]!Some_Password] [authenticate] [/ShowIf] Sincerely, Ken Grome ------------------end quote:what does Ken think about that? tnxs _ _ |_)| / \ |_)|_\_/------------------------------------------------------------- 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/ blo

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:

delete command not working (2000) Wanted: More Math Functions (or, Can You Solve This?) (1997) Multiple adding (1997) Forcing a NEWCART (1997) [Sum] function? (1997) WebCat2b13MacPlugIn - [include] (1997) WebCat2 beta FTP site (1997) Download Question (1997) question: webmerchant connection (1997) Verifying both name and password (was: New Problem) (1997) Help name our technology! (1997) Merry Christmas! :) (1998) Extracting a filename (2004) Bug (feature) in v6 listfiles shows hidden files ... (2004) my price won't move (1997) WebCat2 - Getting to the browser's username/password data (1997) Emailer setup (1997) Scope of variables in multi include files (2000) AccountAuthorizer doesn't seem to work (1997) More on the email templates (1997)