View Single Post
Old 03-07-2024, 05:42 AM   #1
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,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
Question Template language questions

Due to some noticed template magic in this thread , I have a question to understand some detail. I tried to locate this in the calibre user manual, but was lost.

I have a query for finding books with extra files which works well:
Code:
template:"""program: if has_extra_files() then 'yes' else 'no' fi#@#:t:yes"""
In the above mentioned thread, I saw another template query for the same:
Code:
template:"""program: has_extra_files()#@#:b:yes"""
In my first example a "t" is used, while the 2nd uses a "b". I do understand that "b" is meant for "boolean", but what is the meaning of the "t"? And when using "b" instead of "t" in my first query template it does not work. Why?
DrChiper is offline   Reply With Quote