Thanks for this information, most enlightening
Quote:
Originally Posted by chaley
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
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.