integer ======= .. note:: This target doesn't match any syntactical elements. It is used as an option from another target. In case you want to search for integers in code, take a look at :doc:`literal`. Sensei allows some simple matching for integer values. .. contents:: Shorthand --------- When wanting to match a specific value, the simple shorthand can be used. .. code-block:: yaml :emphasize-lines: 3 search: literal: integerValue: 4 Advanced configuration ---------------------- is ~~ Performs an equality check. Only configuring this option behaves the same as using the shorthand notation. .. code-block:: yaml :emphasize-lines: 4 search: literal: integerValue: is: 4 lessThan ~~~~~~~~ Matches any integer value less than the given value. .. code-block:: yaml :emphasize-lines: 4 search: literal: integerValue: lessThan: 4 lessThanOrEquals ~~~~~~~~~~~~~~~~ Matches any integer value less than or equals to the given value. .. code-block:: yaml :emphasize-lines: 4 search: literal: integerValue: lessThanOrEquals: 4 greaterThan ~~~~~~~~~~~ Matches any integer value greater than the given value. .. code-block:: yaml :emphasize-lines: 4 search: literal: integerValue: greaterThan: 4 .. note:: This option was named ``biggerThan`` until Sensei version 2021.1. greaterThanOrEquals ~~~~~~~~~~~~~~~~~~~ Matches any integer value greater than or equals to the given value. .. code-block:: yaml :emphasize-lines: 4 search: literal: integerValue: greaterThanOrEquals: 4 .. note:: This option was named ``biggerThanOrEquals`` until Sensei version 2021.1. .. include:: /ref/targets/partials/searcher.txt