I have an INT field and I need it to get value 1 when a progress fiels is >=50% else 0
I have added in CBCodeField
Code:
[cb:if cb_progressfield="50%"]1[cb:else]0[/cb:else][/cb:if]
but it doesn't seem to work.
The INT field has min 0 and max 1. Step is 1. Also Ajax enabled.
How can I implement this?