Comparison of two values and get value output where mistake goes wrong by using vb.net or javascript code

input :

Value 1: vijay belongs to vishakapatnam.

value2: vijay belongs vishakapatnam.

Can anyone Please Help me, How can I compare “value1” and “value2”,while comparing both values,we get mistake because from “value2”… “to”…is missing…how can i get output as it indicates “to” is missing.

OUTPUT : “to” missing

@saneeth_kandukuri Try below code.

String.Join(" ",value1.Split({" "},StringSplitOptions.None).Except(value2.Split({" "},StringSplitOptions.None)))

is there any import needed to run the above code?

@saneeth_kandukuri Don’t required to any import for running this code

while validating above code,it is showing that, “except is not member of system.array”

@saneeth_kandukuri Try below code

String.Join(" ",value1.Split({" "},StringSplitOptions.None).ToList.Except(value2.Split({" "},StringSplitOptions.None).ToList))

Please,can u write this code in java script?

@saneeth_kandukuri i dont know java script bro. What error u getting now?

@Manjuts90 when I used above script it is not showing any result.(empty)

@saneeth_kandukuri Check the variable names and its values once.

I used value1 and value2 as variables

value1: vijay belongs to vishakapatnam.

value2: vijay belongs vishakapatnam.

can u share your output,what it is getting?

@saneeth_kandukuri Check the image for the output

Check the workflow below

new12.xaml (6.6 KB)

Hey @saneeth_kandukuri

Check this out: - http://jsfiddle.net/fv3hjb5n/32/

Regards…!!
Aksh

tanq for all your response

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.