Ask Your Question
1

"String contains" in Writer Conditions

asked 2018-05-07 08:13:38 +0200

samba2 gravatar image

I'm planning to use Libre Office for templating by filling userfields with external data via Basic or Java. For my use case conditional text/ paragraphs/ sections are quite important. More precisely I want a section to disappear if a userfield contains a string.

However, all the examples I've seen deal with equal/ non-equal strings (e.g. my_variable EQ "somestring")

My question: Is there a way to write something like this in a Writer condition: my_variable LIKE "substring"This condition is supposed to evaluate to TRUE if my_variable contains the substring.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2018-05-07 15:50:15 +0200

Jim K gravatar image

updated 2018-05-07 15:55:59 +0200

No, the only operators available are listed at https://help.libreoffice.org/Writer/F.... So you need a specific variable for each case.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-05-07 08:13:38 +0200

Seen: 124 times

Last updated: May 07 '18