NAnt SDK Documentation - v0.92

Task.IfDefined Property

If true then the task will be executed; otherwise, skipped. The default is true.

[Visual Basic]
<BooleanValidator, _  TaskAttribute(Required:=False, Name:="if", ExpandProperties:=True, ProcessXml:=True)>
Public Property IfDefined As Boolean
[C#]
[BooleanValidator]
[TaskAttribute(Required=False, Name="if", ExpandProperties=True, ProcessXml=True)]
public bool IfDefined {get; set;}

See Also

Task Class | NAnt.Core Namespace