Condition 'Greater than' in rules

Hello.
I tried to compare two variables to start pipeline in gitlabci.
Is this construction allowed?

  • if:
    [[$current -gt $target]]

It’s hard to say much without a bit more context here. I would try something like:

rules:
    - if: '$current > $target'
      when: on_success

or similar. The docs on rules/if can be found here BTW.