Hi
is it possible to use conditions in HTMl Helpers like TABLE()?
for example I build a HTML table with
tablehelper = TABLE(
TR( TD(TD(B("Example"))),
*[ TR( TD( row.DBQuery.ExampleName) ) for row in query]
)
now is it possible to do something like?
tablehelper = TABLE(
TR( TD(TD(B("Example"))),
*[ TR( TD( row.DBQuery.ExampleName), if row.DBQuery.Value == 1:
_class='Test1' else: _class='Test2' ) for row in query]
)
I couldnt find anything in the manual regardding this problem.
with regards
christian