1

I have to modify a LibreOffice template with a number of conditional statements.

I managed to figure out one can add such statements through Insert > Fields > More fields, tab Functions, type Placeholders and format Text (as of LibreOffice 5.0.6.2), but I can't seem to find the list of available functions.

Where do I find some documentation for this language ?

  • FWIW, I am specifically trying to figure out if <ELSE>, NOT and LENGTH(ARRAY) do exist. – Skippy le Grand Gourou May 1 '18 at 17:34
0

I figured this is not a LibreOffice standard macro language, but relatorio, a subset of Genshi (the question was in the context of tryton).

According to the first link, supported directives from Genshi are :

  • py:for ;
  • py:if ;
  • py:choose ;
  • py:when ;
  • py:otherwise ;
  • py:with.

It seems that inside a TEST="" statement, standard python syntax is allowed (i.e. in the case I was interested in, see comment above, len(array)).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.