This should do it: <div class="errormsg" tal:condition="errmsg eq 'unknonwn_user'"> Your username is unknown </div>
2009/8/31 GRolf <ger...@pictureparking.com> > the docs say about "tal:condition" that the block will only be shown > if the expression evaluates to true... > > but I don't find the info if I couldn't easily compare a var to a > string? > > should I always revert to php: stringname == 'value' ? > > Something like > > <div class="errormsg" tal:condition="errmsg:'unknonwn_user'"> Your > username is unknown</div> > > > > > _______________________________________________ > PHPTAL mailing list > PHPTAL@lists.motion-twin.com > http://lists.motion-twin.com/mailman/listinfo/phptal >
_______________________________________________ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal