irange
Prototype: irange(arg1, arg2)
Return type: irange
Description: Define a range of integer values for CFEngine internal use.
Used for any scalar attribute which requires an integer range. You can
generally interchangeably say "1,10"
or irange("1","10")
. However, if
you want to create a range of dates or times, you must use irange() if you
also use the functions ago(), now(), accumulated(), etc.
Arguments:
arg1
:int
- Integer start of range - in the range:-99999999999,99999999999
arg2
:int
- Integer end of range - in the range:-99999999999,99999999999
Example:
irange("1","100");
irange(ago(0,0,0,1,30,0), "0");
See also:
- Functions commonly used with [irange()](/reference/functions/irange “irange”)
- [ago()](/reference/functions/ago “ago”)
- [now()](/reference/functions/now “now”)
- [accumulated()](/reference/functions/accumulated “accumulated”)
- Attributes of type
irange
atime
in bodyfile_select
copy_size
in bodycopy_from
ctime
in bodyfile_select
mtime
in bodyfile_select
match_range
in bodyprocess_count
pgid
in bodyprocess_select
pid
in bodyprocess_select
ppid
in bodyprocess_select
priority
in bodyprocess_select
rsize
in bodyprocess_select
search_size
in bodyfile_select
stime_range
in bodyprocess_select
threads
in bodyprocess_select
ttime_range
in bodyprocess_select
vsize
in bodyprocess_select