Skip to content
  • Categories
Collapse
Solibri Society Forum
  1. Home
  2. General Discussion
  3. operator contains, possibility to use "or"

operator contains, possibility to use "or"

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 452 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Mauro CattaneoM Offline
    Mauro CattaneoM Offline
    Mauro Cattaneo
    wrote on last edited by
    #1

    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”
    801e9625-8433-42f6-bef1-c8b1cd26e57e-image.png

    Which rule can i use?

    Thanks

    Mauro

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lasse.lindqvist
      wrote on last edited by
      #2

      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

      205e77f4-732d-461b-b89a-236dc6a5dd4c-image.png

      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.

      1 Reply Last reply
      0

      Copyright © 2025 Solibri Inc. | Powered by NodeBB

      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories