NAnt SDK Documentation - v0.92

Target.UnlessCondition Property

Opposite of IfDefined. If false then the target will be executed; otherwise, skipped. The default is false.

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

See Also

Target Class | NAnt.Core Namespace