What about an ends with operator?
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 33060
interpreted = N
texte = I think it would be very useful to have an ends with comparison operator -- so when we use a showif inside a listfiles context, we would have a simple way to show only the files that END WITH a certain suffix.Practically all the files in a website have a suffix of one kind or another, right? So this seems like a very practical addition to the webdna language ... because it would let us very easily list specific file types without a whole lot of confusing code to deal with.As it is now, we have contains (^), but it cannot do the job on its own, which means we have to write a whole bunch of additional (relatively complex) code in order to get a simple list of all the .db files in a folder, or all the .tpl files in a folder, etc., etc.In other words, we cannot get what we want like this:[listfiles ...][showif [filename]^.db]... because sometimes the .db is not at the end of the file name, such as when there's a stuffit file like something.db.sit in the folder. But if we had an ends with operator, for example *, then we could do it like this:[listfiles ...][showif [filename]*.db]... because the something.db.sit file would NOT be shown, but the something.db file (and every other file ending with .db, which is exactly what we want) would be shown.Does anyone else think this is a good idea?================================Kenneth Grome, WebDNA Consultant808-737-6499 http://webdna.net================================-------------------------------------------------------------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:
I think it would be very useful to have an ends with comparison operator -- so when we use a showif inside a listfiles context, we would have a simple way to show only the files that END WITH a certain suffix.Practically all the files in a website have a suffix of one kind or another, right? So this seems like a very practical addition to the webdna language ... because it would let us very easily list specific file types without a whole lot of confusing code to deal with.As it is now, we have contains (^), but it cannot do the job on its own, which means we have to write a whole bunch of additional (relatively complex) code in order to get a simple list of all the .db files in a folder, or all the .tpl files in a folder, etc., etc.In other words, we cannot get what we want like this:[listfiles ...][showif [filename]^.db]... because sometimes the .db is not at the end of the file name, such as when there's a stuffit file like something.db.sit in the folder. But if we had an ends with operator, for example *, then we could do it like this:[listfiles ...][showif [filename]*.db]... because the something.db.sit file would NOT be shown, but the something.db file (and every other file ending with .db, which is exactly what we want) would be shown.Does anyone else think this is a good idea?================================Kenneth Grome, WebDNA Consultant808-737-6499 http://webdna.net================================-------------------------------------------------------------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/
Kenneth Grome
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:
Design Help Needed (1998)
Couple of questions (1999)
Using Applescript to process WebCatalog functions (1998)
NT - Thanks and Taxes (1997)
price formula (1999)
OT Server capacity (2003)
WebCat2: multiple currency support (1997)
WebCat & WebTen (1997)
Browser Info.txt -- newest additions? (1997)
Re:Emailer and encryption (1997)
5.0 Pricing (2003)
[OT] Happy Turkey Day! (2003)
RE: 2.01 upgrade problems (1997)
Help- Spam Bots are spamming my site. (2007)
[WebDNA] Sorry WebDNA server not running - September 2019 Edition (2019)
math on date? (1997)
Don't know if this is a sily question... (2003)
Emailer problem (2000)
Catalogs and W* (1996)
Search Engine bots (2002)