NAnt SDK Documentation - v0.92

Argument.IfDefined Property

Indicates if the argument should be passed to the external program. If true then the argument will be passed; 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

Argument Class | NAnt.Core.Types Namespace