I am new to this templating system, so sorry if I am doing something stupid.
Here is my problem. I would like a list of people with an X by the selected
one.
<p>Set target:
{% for p in GAME.players %}
<a href="/settarget?target={{p}}">{{p}}</a>
{% if player == p %} X {% endif %}
{% endfor %}
Player and p both look right when I print them, but the if statement will
not trigger. Any ideas? player and p are objects of the same type.
--
You received this message because you are subscribed to the Google Groups
"pocoo-libs" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pocoo-libs/-/lMa5Xk1q3zgJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pocoo-libs?hl=en.