compare data line by line from a file

Hi there

How can I compare data line by line from a file?

I need to compare the second value with the fourth to know if they are different.
If those values are different, I require to send my first value to the output until the complete file has been read.

This is my file:

0 FALSE 0.9402448762310354 TRUE
1 FALSE 0.9402448762310354 FALSE
2 FALSE 0.9402448762310354 FALSE
4 FALSE 0.9402448762310354 FALSE
10 FALSE 0.9402448762310354 FALSE
828 FALSE 0.9402448762310354 TRUE
829 FALSE 0.9402448762310354 TRUE
832 FALSE 0.9402448762310354 TRUE
833 FALSE 0.9402448762310354 TRUE
834 FALSE 0.9402448762310354 TRUE

Your help will be highly appreciated

Thanks

Lu

Use nawk or /usr/xpg4/bin/awk on Solaris.

awk '$2!=$4&&$0=$1_' infile