Determining which value is larger

i know there is a code that determines which of two values is larger and returns the larger value.

i cannot seem to find it in the actionscript help.

i know you can do it with

if (val1>val2) {
	val3 = val1;
} else {
	val3 = val2;
}

but there is an easier way and i cannot find the file that i used it in previuosly.

anyone.

thanks