I tried
if [ "$str1" == "$str2" && "$str3" == "$str4" ];
then
statement
else
statement
fi
I've tried with one equal sign. I've tried with two equal signs. I've tried with and without quotation marks. I've tried without the semi-colon. Nothing seems to work.
I keep getting error
[: missing `]'
I have not the slightest clue on what that means. I've tried my function with out this if statement and it works. PEOPLE I HAVE A SPACE between the leading and trailing brackets.