NAnt SDK Documentation - v0.92

Task.UnlessDefined Property

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

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

See Also

Task Class | NAnt.Core Namespace