Computed Field display only if below 0 In my computed field I'm trying to make it display the field and it's label only if the value is negative.  If it is above 0 it should not display anything, not even field label.

So far in "Display Code (PHP)" I have:

if $entity_field_item['value'] &lt; '0' { ;
$display_output = $entity_field_item['value'] . '%';
}else{$display_output = ''};


But it just returns the label with no value.

The classic

$display_output = $entity_field_item['value'] . '%';


works fine though.
Try this:

if ($entity_field_item['value'] != 0)
 {
 $display_output = $entity_field_item['value'] . 'pkt';
 }
 else($display_output = NULL);