Re: Showif Context combined with Search
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 15543
interpreted = N
texte = Grant Hulbert wrote:>ShowIf is purely text-based, and has nothing inherently to do with >searching. It looks at whatever text is on the left of the '=' (orother comparison, >like >,<,~,^,!) and compares it to the text on the right-hand side:>>[ShowIf [xxx]=[yyy]]> | |_____evaluate right-hand side> |> -- evaluate left-hand side>>Whatever those [xxx] amd [yyy] WebDNA expressions become (and they canbe >complex lookups and such) is what gets compared. Be careful, though,because if >you accidentally have '=' or '!' or whatever *inside* the text of eitherside, >then it can confound the comparison.>>What is the syntax then, for a lookup of a record that matches 3 values,as in my example, something like:db=d2mcust.db&firstname=[firstname1]&lastname=[lastname1]&address=[address1]Where the bracketed names are the values that I want to search for.Larry
Associated Messages, from the most recent to the oldest:
Grant Hulbert wrote:>ShowIf is purely text-based, and has nothing inherently to do with >searching. It looks at whatever text is on the left of the '=' (orother comparison, >like >,<,~,^,!) and compares it to the text on the right-hand side:>>[ShowIf [xxx]=[yyy]]> | |_____evaluate right-hand side> |> -- evaluate left-hand side>>Whatever those [xxx] amd [yyy] WebDNA expressions become (and they canbe >complex lookups and such) is what gets compared. Be careful, though,because if >you accidentally have '=' or '!' or whatever *inside* the text of eitherside, >then it can confound the comparison.>>What is the syntax then, for a lookup of a record that matches 3 values,as in my example, something like:db=d2mcust.db&firstname=[firstname1]&lastname=[lastname1]&address=[address1]Where the bracketed names are the values that I want to search for.Larry
Larry Orchier
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:
WebCat2b15MacPlugin - [protect] (1997)
Problems reading files created by WC (1997)
[OT] Happy Turkey Day! (2003)
Calculating multiple shipping... (1997)
2.0.1 new commands and contexts (1997)
Multiple prices (1997)
WC Database Format (1997)
Search results templates (1996)
emailer cc to figured out (1997)
latest version? (1998)
RE: WebCatalog NT beta 18 now available (1997)
RE: OK, here goes... (1997)
Country & Ship-to address & other fields ? (1997)
Can WC remember people? (1998)
[shownext max=?] armed (1997)
RE: what characters are replaced for tab and CR? (1998)
Databases (2000)
Question about replacing words (1998)
New Site Announcement (1998)
Forms Search Questions (1997)