Glen Swift Glen Swift - 1 year ago 265
Python Question

Convert integer to string Jinja

I have an integer

{% set curYear = 2013 %}

{% if %}
statement I have to compare it with some string. I can't set
to string at the beginning because I have to decrement it in loop.

How can I convert it?

Answer Source

I found the answer.

Cast integer to string:


Cast string to integer:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download