View Single Post
Old 03-07-2024, 07:56 AM   #3
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,029
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
Thanks for this information, most enlightening

Quote:
Originally Posted by chaley View Post
The 't' means 'text compare'. The first template returns either the string 'yes' or the string 'no'. The text test in the template search checks for the value 'yes'. For completeness, the other search types are 'b' (boolean, set/not set), 'n' (numeric), and 'd' (date).
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.

Quote:
Originally Posted by chaley View Post
FWIW: the second template is somewhat faster. Not much because the performance difference is swamped by the time required to check the library for data files.
It is definitely faster on my machine, that's why I wanted to grasp the difference so I could understand what was going on.

Last edited by DrChiper; 03-07-2024 at 08:11 AM.
DrChiper is offline   Reply With Quote