when check comparing stdout against numeric value?

Hi,

I'm checking the current sysctl value of kern.maxfiles and would like
to rise this sysctl setting, if it is below 20000 [1]:

- - name: Ensure system-wide runtime file descriptor limits are
reasonable (OpenBSD)
sudo: yes
command: "sysctl kern.maxfiles=20000"
when: currentlimits.stdout < 20000

but even though kern.maxfiles is 7030 the setting is skipped due to
'when' check:

from debug var output:
            "stdout": "7030",
            "stdout_lines": [
                "7030"

is it supposed to be possile to compare stdout with '<' against a
numeric value?

If I invert the check
stdout > 20000
it actually runs even though 7030 is not greater than 20000.

Is '>' non-numeric?

thanks!

[1]
https://github.com/nusenu/ansible-relayor/blob/master/tasks/openbsd_install.yml#L22

Try this
when: currentlimits.stdout|int < 20000

Try this when: currentlimits.stdout|int < 20000

that fixed it,
thank you!