Determining which one has highest value

i have 3 variables and im executing a block of code depending which on has the highest … how do i determine has the highest and the execute the code which ever has the highest