Compare columns in a single file

i have the following files (all separated by tabs):

file 1.txt

1	yes
2	no
3	yes
4	yes

file 2.txt

a	no
b	no
c	yes
d	no

i combine the above files in file 3 which looks like

file 3.txt

1	yes	a	no
2	no	b	no
3	yes	c	yes
4	yes	d	no

now, i need to compare the values between column 2 and column 4 and produce file 4 which should look like below

1	yes	a	no	no match
2	no	b	no	match
3	yes	c	yes	match
4	yes	d	no	no match

any help will be really appreciate. tia

Is that homework?

$ awk '$2 == $4 {print $0 "\tmatch"; next} {print $0 "\tno match"}' infile
1       yes     a       no      no match
2       no      b       no      match
3       yes     c       yes     match
4       yes     d       no      no match
1 Like

Or

awk '{print $0, "\t"($2==$4?"":"no ") "match"}' file3
1 Like

thanks zaxxon & rudic, both works.
nope, sure not a homework for me at least. i am new to awk and i feel i really need to sit down and learn the basics. thanks again.