How to add an 'if' statement for a content type in a custom views-view.tpl.php?
You can access it by adding Node Type field to views and access it using $row variable in views-view.tpl.php.

$rows: The results of the view query, if any


Or $views is also accessible in each and every views template file.