Shane

Shane

  • NA
  • 11
  • 0

How to assign a number value to String

Apr 9 2010 11:44 AM

I dont know if this is possible, but i want to assign some sort of number value to a string so i can compare the strings. Im making a card game and the cards are put to a list using a deal method which contains some switches that return "TWO", THREE..."ACE"
 
Now i have no way of comparing these, like
"ACE" > "TWO"
Any ideas?

Answers (4)