operator contains, possibility to use "or"
-
Hi!
I have a question, probabily someone can help me.
I’d like to use “contains” to check several different possibilities of a value properties, how can i do that?
because if I use the rule SOL/230/1.1 the list of requirements are not: “check one string or the requirement below and so on…”
It checks every value togheter and I’d like to have a possibility to use “or”

Which rule can i use?
Thanks
Mauro
-
Hi. It is not possible to check “contains” with OR logic, only exact contents with the “One of” operator. So if exact matching is enough for you, you can use the following

But if exact matching is not suitable, one option is to use the new Information API (requires basic Java development skills https://society.solibri.com/topic/563/information-api) which can be used to create any arbitrary logic. In this case the custom information would define a new property ContainsXYZJ and would return true if one of them was contained in the original Name property. This new ContainsXYZJ property could then be used to filter only those components that have ContainsXYZJ as TRUE.
Copyright © 2025 Solibri Inc. | Powered by NodeBB