3 way checker

I know this can be done with if(), but is there not an operation which can do this?
I am checking between 2 variables and whichever is smallest is assigned to a third.
[AS]
if (a<=b) {
c = a
} else if (b<a) {
c = b
}
[/AS]

I cant think of a much shorter way, but you could cut out about 5 letters by doing ths:

if (a<=b) {
c = a
} else {
c = b
}