To simplify everything to try to root out the problem I did this:
PHP Code:
$list = 'Item1 Item2 Item3';
$items = explode(' ', $list);
$output_list = '<ul>';
foreach($items as $item)
{
$output_list .= '<li>'.$item.'</li>';
}
$output_list .= '</ul>';
On the template I put this:
HTML Code:
<if condition="$output_list">
$output_list
<else />
Nothing in output_list
</if>
It just said "Nothing in output_list"
I don't know what it could be :|