View Single Post
Old 03-07-2021, 06:49 AM   #16
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: 11,764
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
7 Mar 2021 (calibre 5.13):
  • Fix regression introduced sometime in calibre V5: expression lists as parameters

    In calibre versions before V5.something one could use expression lists as parameters. Example:
    Code:
    program:
        list_union(
    	a = 'xxx'; list_union('a', field('tags'), ','), 
    	field('#genre'),
    	','
        )
    This 'feature' was certainly rarely used but it was possible. Fixed in the interest of compatibility.
  • Allow expression lists in parenthesized expressions.

    As a consequence of the above, you can now put expression lists in parenthesized expressions. Example:
    Code:
    program:
    	b = (
    		a = field('#mytextmult');
    		list_union(a, field('tags'), ',')
    	);
    	if a then
    		list_union(b, field('#genre'), ',')
    	else
    		b
    	fi

Last edited by chaley; 03-11-2021 at 01:55 PM.
chaley is offline   Reply With Quote