But it doesn’t work. I tried to test my condition in the sandbox and the result is always false although “invoicetotal” of the selected document is 600.
I make a guess that “document.metadata_value_of.invoicetotal” is a string so Mayan cannot compare it. So, I tried to put something like {% if **int(**document.metadata_value_of.invoicetotal) >= 500 %}, however, Mayan gives error when running it.
The condition returns correct result after I used the template tag as you suggested. However, when I added that to the workflow transition’s condition, I’m not sure why it always show the 2 transition options while it should hide one of them (Total <= 500).
Conditions that do not return any value, that return the Python logical None, or an empty string (‘’) are considered to be logical false, * any other value is considered to be the logical true *.
You template is returning a positive value on both conditions. Remove the {% else %}False part.