4
Answers

How to assign a number value to String

Shane

Shane

14y
2.4k
1

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)