This is a script for finding the maximum of two numbers. You can use it with credit.
Look inside for the script to find the minimum of two numbers.