Urgent:Comparing two Strings using If Loop

Hi All,

Please help me out in this... I am new to scripting

How to compare two strings by using the same string in single loop,
I am using ksh

for ex:see the code snippet below
I am writing in java,
Can u guys tell me that in scripting

if ("string1"=="string2" || "string1"=="string3")
{
//statements----
}
else
if("string2"="string3")
{
//statements
}

Thanks in advance.
Anji

in java (copied from the net, handy :slight_smile: ):

in ksh :

Thanks buddy

I already solved that problem by own

Anyway Thanks alot for ur reply