Update process.pl

Changed sequence of if's to elseif.