PHP print script error
===

I'm trying to implement the script below to print the images on the supposed pages but it rather causes a problem to the pages instead.

     <?php
    	 if ($currentpage == '/services/') {
    	 	 print("<img src="path/to/services.png" alt=""/>");
    	 },
    	  if ($currentpage == 'contact.php') {
    	 	 print("<img src="path/to/image.png" alt=""/>")
    	 },
    	 else {
    	 	 print("<img src="path/to/image.png" alt=""/>")
    	 }
         ?>


The Error message is:
Parse error: syntax error, unexpected T_STRING in /home/master/public_html/wp-content/themes/siteripe-001/othe-rpages.php on line 173
      
      