Compare Strings - Equal and unequal

Hi,

I want to compare strings with each other. Equal and unequal strings should be displayed.

I thank you in advance for the support!

1 Like

First, create your array of strings, add your variables. Then simply check with a for each loop!


image

2 Likes

Thank you for your support!

2 Likes

Any time. Feel free to revisit this post if you need further help!

2 Likes

Unfortunately it doesn’t work properly.

result at equal:
car
house

result at unequal:
cat
tree
train
bicycle
horse

1 Like

Hmm. My bad. Arrays really aren’t my thing x) Try this:

3 Likes

It still does not work.

okay, it works. Thanks very much!

1 Like

The string array that goes into the Foreach must be the one with more variables inside. No worries, good luck!