NAnt SDK Documentation - v0.92

Target.IfCondition Property

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

[Visual Basic]
<TaskAttribute(Required:=False, Name:="if", ExpandProperties:=False, ProcessXml:=True)>
Public Property IfCondition As String
[C#]
[TaskAttribute(Required=False, Name="if", ExpandProperties=False, ProcessXml=True)]
public string IfCondition {get; set;}

See Also

Target Class | NAnt.Core Namespace