Skip to main content
Nintex Community Menu Bar

How can I compare 2 numeric variables and find double values

  • February 8, 2022
  • 4 replies
  • 19 views
  • Translate

leon_romansvans

I have 2 variables with numeric values devided by | . I want to find (remove) doubles and combine the variable in one..

Did this topic help you find an answer to your question?

4 replies

Hi Leon

 

If you have two variables you first need to split them into two sperate ones. To do that use the "split" command and use your divider "|".

Then use the "if" command to to compare them. In the command set the comparison to "if equal". That way you will be able to create a deletion step for the duplication and the rest of the data you want will "go" trough another step.

 

Translate

leon_romansvans

Problem is that there can be more than 2 values in each variable...:(

Translate

Hi Leon

 

In case you have a string with more than one value in the variable you can use the advanced command "Replace" with regex as follow: (see pics)

Regex line- (w+)s*|s*(?=.*1)

You can see that after running the command on the variable the duplications were erased.

 

I attached a LWIZ file for your use.

 

 

Translate

leon_romansvans

Great tip, haven't tried that looks promising...

I'll let you know if this is the solution for my problem..

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings