Asking on ksh script

I was doing greping of data from a output string and using cut -d -f2 to get the value out . Then using this variable to check whether it is equal to 'N' but when i run this ksh script ,it gave me an error saying Y=N bad number. How do i write the syntax to compare a string variable ?

Original code
-------------------
if the errorind variable contains maybe =Y .

if((${errorind} -eq 'N')) THEN

Try:

if [[ $errorind = N ]] ; then

Check this -

if [[ $errorind = "N" ]];
then

Be sure to leave space between square brackets i.e, [[ and $errorind and also between N and ]]. I tried to run my script without the space it gave me an error.

thanks i used the [] bracket it can worked already.Thanks a lot !!