Updated if.php and added while.php