Name

selectivelyCancelTreatments — This script will cancel treatments based on a selection criteria and a range of periods.

Syntax

void selectivelyCancelTreatments ( String select , int [ ] periods ) 

The command has the following arguments:

select

An expression defining the stands of interest.

periods

A list of periods to examine.

Description

This script will cancel treatments based on a selection criteria and a range of periods.

This example will cancel all 'CC' treatments in the first 5 planning periods:

selectivelyCancelTreatments("CURRENTTREATMENT='CC'", new int[] {1,2,3,4,5});