skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : Disassociate element(s)
 

Try Corticon Now

Disassociate element(s)

SYNTAX

<Collection1> -= <Collection2>

DESCRIPTION

Disassociates all elements of <Collection2> from <Collection1>. Elements are not deleted, but once disassociated from <Collection1>, they are moved to the root level of the data. <Collection1> must be expressed as a unique alias. Contrast this behavior with remove, which deletes elements entirely.

USAGE RESTRICTIONS

The Operators row of the table in Vocabulary usage restrictions does not apply. Special exceptions: disassociate element may only be used in Action Rows (section 5 in Sections of Rulesheet that correlate with usage restrictions).

RULESHEET EXAMPLE

This sample Rulesheet removes those elements from collection1 whose boolean1 value is true.

SAMPLE RULETEST

A sample Ruletest provides a collection with three elements. The illustration shows Input and Output panels: