irange
Table of contents
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,99999999999arg2:int- Integer end of range - in the range:-99999999999,99999999999
Example:
code
irange("1","100");
irange(ago(0,0,0,1,30,0), "0");
See also:
- Functions commonly used with
irange() - Attributes of type irange
atimein bodyfile_selectcopy_sizein bodycopy_fromctimein bodyfile_selectmtimein bodyfile_selectmatch_rangein bodyprocess_countpgidin bodyprocess_countpidin bodyprocess_countppidin bodyprocess_countpriorityin bodyprocess_countrsizein bodyprocess_countsearch_sizein bodyfile_selectstime_rangein bodyprocess_countthreadsin bodyprocess_countttime_rangein bodyprocess_countvsizein bodyprocess_count