How can I incorporate an ace switch function for a blackjack program?

You know when you are playing blackjack and if you draw an ace, it can be counted as 11 or 1 depending on whether you pass 21 or not? How can I code that into a program? I don't need the code, I just need to know how to go about it. Please help.
If the current value is greater than 10, then it is a one, if not then it is 11.
Topic archived. No new replies allowed.