NAnt SDK Documentation - v0.92 |

# ChooseTask.AddCondition Method

One or more alternative sets of tasks to execute.

[Visual Basic]
<BuildElement(Name:="when", Required:=True, ProcessXml:=True)>
Public Sub AddCondition( _
ByVal when As When _
)
[C#]
[BuildElement(Name="when", Required=True, ProcessXml=True)]
public void AddCondition(
When when
);

#### Parameters

when
  The set of tasks to add.

#### See Also

ChooseTask Class | NAnt.Core.Tasks Namespace