mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
String changes
This commit is contained in:
parent
53c153750a
commit
2395bc85a8
@ -403,7 +403,7 @@ Program mode also supports the classic relational (comparison) operators: ``==``
|
||||
* ``program: if or(field('series') == 'foo', field('series') == '1632') then 'yes' else 'no' fi`` returns 'yes' if series is either 'foo' or '1632', otherwise 'no'.
|
||||
* ``program: if '11' > '2' then 'yes' else 'no' fi`` returns 'no' because it is doing a lexical comparison. If you want numeric comparison instead of lexical comparison, use the operators ``==#``, ``!=#``, ``<#``, ``<=#``, ``>#``, ``>=#``. In this case the left and right values are set to zero if they are undefined or the empty string. If they are not numbers then an error is raised.
|
||||
|
||||
General Program Mode support saving General Program Mode templates and calling those templates from another template. You save
|
||||
General Program Mode supports saving General Program Mode templates and calling those templates from another template. You save
|
||||
templates using :guilabel:`Preferences->Advanced->Template functions`. More information is provided in that dialog. You call
|
||||
a template the same way you call a function, passing positional arguments if desired. An argument can be any expression.
|
||||
Examples of calling a template, assuming the stored template is named ``foo``:
|
||||
|
Loading…
x
Reference in New Issue
Block a user