View Single Post
Old 03-07-2024, 08:15 AM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by DrChiper View Post
I had already some clue that string compare was used, but figured the 't' was used as a placeholder for 'true' (=yes). Oh well. However, I think it would be an user guide improvement to add there the above info. When you are in the know, you can figure out the 't', but is is not explicitly mentioned. Nor is the placeholder "#@#": it is shown, but not really explained.
In most cases template searches are built using the Advanced Search dialog, as the documentation suggests. That is what I do. The tooltips in that dialog explain much of what you can do.

You can use the "Copy the current search into the boxes" in that dialog to see what a search you found elsewhere, e.g., in a forum post, is doing. For example, here is what you see with for your 2nd template search.
Click image for larger version

Name:	Clipboard02.jpg
Views:	82
Size:	93.6 KB
ID:	206770

As for why it is faster, the 2nd template has a smaller, simpler program: it doesn't use an if/then/else. For smaller libraries or fewer data files, the time to execute the 'if' statement is a larger percentage of the total.
chaley is offline   Reply With Quote