InRange

checks if left side is in range of right side (from,to anotation) e.g. - InRange left=4right=1,8 will return true.

python · Filters And Transformers

Details

IDInRange
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10404775
Tagsfilter number

README

Checks if the left side is in range of the right side (from,to anotation).

Example - InRange left=4right=1,8 will return true

Script Data


Name Description
Script Type python3
Tags filter, number

Inputs


Argument Name Description
left The value to check, if it is in range. For example, 4.
right The range to check against with the form of from,to. For example, 2,8.

Outputs


There are no outputs for this script.

commonfields:
  id: InRange
  version: -1
name: InRange
script: ''
type: python
subtype: python3
tags:
- filter
- number
comment: |-
  checks if left side is in range of right side (from,to anotation)
  e.g. - InRange left=4right=1,8 will return true.
enabled: true
args:
- name: left
  required: true
  description: Value to check if in range (e.g. 4).
- name: right
  required: true
  description: Range to check against with the form of from,to (e.g. 2,8).
scripttarget: 0
isllm: false
fromversion: 5.0.0
tests:
- No tests (auto formatted)
dockerimage: demisto/python3:3.12.13.10404775