
admin.forestIsRangePolicyRangeSet( config as element(configuration), forest-id as (Number|String) ) as Item?
  This function returns false if the specified forest has
  neither the lower boundary nor the upper boundary set. Otherwise, it returns
  true.
  
| Parameters | |
|---|---|
| config | A configuration specification, typically as returned from one of the Admin module functions. | 
| forest-id | The ID of the forest. | 
const admin = require('/MarkLogic/admin.xqy');
const config = admin.getConfiguration()
const forestid = admin.forestGetId(config, "myForest")
admin.forestIsRangePolicyRangeSet(config, forestid)
    
  
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.