Can I used

sgnarkhede2016
sgnarkhede2016 New Altair Community Member
edited November 5 in Community Q&A
Can I used "LIKE" on branch opeartor
e.g. I need to check "%{periodicity} LIKE %ROLLING%"

how to write this condition on branch

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee
    edited August 2020
    Hi,
    i think you want to do something like
    matches(%{periodicity},".+ROLLING.+")
    That uses regular expressions.
    Best,
    Martin

  • sgnarkhede2016
    sgnarkhede2016 New Altair Community Member
    matches(%{periodicity},".+ROLLING.+") ,Not work for me
    In %{periodicity}, values coming like ROLLING_10,ROLLING_20 etc
  • MartinLiebig
    MartinLiebig
    Altair Employee
    Hi,
    then you need to adapt the regex to this. More like
    .*ROLLING.* 

    Best,
    Martin