Compare 2 strings

arbado

New member
I want to compare two ip-addresses e.g 123.456.789.123 and 456.789.123.456 stored in two variables ip1 and ip2. The result should be
- stored in a boolean variable isEqual or
- used as a condition in If
I'd like to manage it like
- set variable asEqual to ip1=ip2
- If ip1=ip2
How to do?
 

Endercraft

Moderator (& bug finder :D)
I want to compare two ip-addresses e.g 123.456.789.123 and 456.789.123.456 stored in two variables ip1 and ip2. The result should be
- stored in a boolean variable isEqual or
- used as a condition in If
I'd like to manage it like
- set variable asEqual to ip1=ip2
- If ip1=ip2
How to do?
If ip1 = {lv=ip2}
Set variable (isEqual) : true
Else
Set variable (isEqual) : false
End If
 

arbado

New member
Thanks. I'm a beginner, so I dont't know how to enter If ip1 = {lv=ip2}.
1. Action: condition/loop If
2. Condition: ?? Macrodroid Variable ?? (x) ip1 OK, = (x) False ( ) True ????
 

Endercraft

Moderator (& bug finder :D)
If clause - > Macrodroid variable - ip1 - > Select =, enter {lv=ip2} in Enter value - > OK - > OK.

Click on If clause - > Add else clause.

Click on Else - > Add action above and select
Set variable (isEqual) : true

Click on End If - > Add action above and select
Set variable (isEqual) : false
I hope you understand.
 
Top