Hallo Tom,
I use the following code
#if $day.extraTemp9.has_data
<div class="hes">
<div class='hesbox'>
<table class='hes_temp'>
<tr><td class='hes1_kopfa'>Carport<br /> bei 200cm</td>
<td class='hes1_kopf' colspan='2'>Aktuell</td>
<td class='hes1_kopf' colspan="2">Trend</td></tr>
<tr>
<td class='hes1_bigval' colspan='3'><a href=
'dayCarport.png' class='popup'>$current.extraTemp9</a></td>
#if $trend.extraTemp9.raw < 0
<td class="hes1_trendlo"> ⇩</td>
<td class='hes1_vallo'>$trend.extraTemp9.formatted</td>
#elif $trend.extraTemp9.raw == 0
<td class="hes1_trendhi">=</td>
<td class="hes1_valhi">$trend.extraTemp9.formatted</td>
#elif $trend.extraTemp9.raw > 0
<td class="hes1_trendhi"> ⇧</td>
<td class='hes1_valhi'>$trend.extraTemp9.formatted</td>
#end if
</tr>
<tr>
<td class='hes1_kopfb'>Heute seit<br />Mitternacht</td>
<td><span class='hes1_m'>max</span></td>
<td><span class='hes1_valhi'> $day.extraTemp9.max.formatted
</span></td>
<td><span class="hes1_m">min</span></td>
<td><span class='hes1_vallo'>$day.extraTemp9.min.formatted<
/span></td>
</tr>
<tr>
<td class='hes1_kopfb'>Werte<br />Gestern</td>
<td><span class='hes1_m'>max</span></td>
<td><span class='hes1_valhi'> $yesterday.extraTemp9.max.
formatted</span></td>
<td><span class="hes1_m">min</span></td>
<td><span class='hes1_vallo'>$yesterday.extraTemp9.min.
formatted</span></td>
</tr>
</table>
<hr />
<img src="dayCarport.png" alt="carport-temp" style="width:300px;
height:175px;" />
</div>
</div><!-- ende extraTemp9 carport kombi -->
#end if
I use this sequence for all pages.
by indexAir.html.tmpl
i have also
<tr><td colspan='5'>Tagesmittelwert</td></tr>
<tr>
#if $day($data_binding='air_binding').air_sensor.avg.raw <= 50
<td class='hes1_winbo' colspan='3' style="background-color: limegreen"
>Gut</td>
<td class='hes1_m' colspan='2' style="background-color: limegreen">
#else if $day($data_binding='air_binding').air_sensor.avg.raw > 50 and
$day($data_binding='air_binding').air_sensor.avg.raw <= 100
<td class='hes1_winbo' colspan='3' style="background-color: yellow">
Mittel</td>
<td class='hes1_m' colspan='2' style="background-color: yellow">
#else if $day($data_binding='air_binding').air_sensor.avg.raw > 100 and
$day($data_binding='air_binding').air_sensor.avg.raw <= 150
<td class='hes1_winbo' colspan='3' style="background-color: orange">
Sensibel</td>
<td class='hes1_m' colspan='2' style="background-color: orange">
#else if $day($data_binding='air_binding').air_sensor.avg.raw > 150 and
$day($data_binding='air_binding').air_sensor.avg.raw <= 200
<td class='hes1_winbo' colspan='3' style="background-color: red">
Ungesund</td>
<td class='hes1_m' colspan='2' style="background-color: red">
#else if $day($data_binding='air_binding').air_sensor.avg.raw > 200 and
$day($data_binding='air_binding').air_sensor.avg.raw <= 300
<td class='hes1_winbo' colspan='3' style="background-color: red">sehr
ungesund</td>
<td class='hes1_m' colspan='2' style="background-color: red">
#else if $day($data_binding='air_binding').air_sensor.avg.raw > 300
<td class='hes1_winbo' colspan='3' style="background-color: maroon">
Gefährlich</td>
<td class='hes1_m' colspan='2' style="background-color: maroon">
#end if
$day($data_binding='air_binding').air_sensor.avg</td>
</tr>
otherwise I have no conditions with one "<" and/or ">"
Hartmut