I'm having a view and I've created a template file for the row style output. I'm able to access the fields using the below code:
$fields: An array of $field objects. Each one contains:
$field->content: The output of the field.
$field->raw: The raw data for the field, if it exists. This is NOT output safe.
I'm getting output for the below code:
<?php print $fields['field_some_field_name']->content; ?>
But when I'm trying to print the fields nothing is getting returned:
<?php print_r($fields); ?>
I'm also unable to check the condition for the fields:
<?php if($fields['field_some_field_name']->content == 'Test') { } ?>