Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

clearConditions

Clears the conditions of a target group in Optimizely Campaign.

Afterwards, the target group is no longer valid until you set a new condition with addAndCondition or addOrCondition.

Type: void

Parameters

NameTypeValue
sessionIdStringID of the session
modificationIdStringIdentifier created by beginConditionModification

Return values

  • Code structure

    void clearConditions(String sessionId, String modificationId)