How Do I:compering without using any type of condition
Can I compere among three strings and find the greater among them and if there are indentical strings without using any kind of condition?and how can I do this?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Amit ChoudharyRank #145 · 15.8K reputationPosted Apr 19, 2010, 7:02 PM EDT
what is the meaning of greater here... is it related to string length or Dictionary order.
if it is length then you can calculate the length and use the to get the greatest other wise use CompareTo function to compare the strings according to dictionary order and it'll return you 1 if greater, -1 if smaller and 0 if equals.... use these values and find your greatest string.
Please mark as answer if it helps.
safaa3 reputationPosted Apr 20, 2010, 7:49 AM EDT
if I use the compere I need condition to determind wether the output of the function is 0,1 or -1 and I want to compere without any condition in my program
thanks
SAFFY
Sam HobbsRank #107 · 20.5K reputationPosted Apr 20, 2010, 10:24 AM EDT
What function does "output of the function is 0,1 or -1" describe? Is that a function that has already been written that you need to use or is it a function you need to write or something else?