NAnt SDK Documentation - v0.92 |

# PropertyFunctions.Exists Method

Checks whether the specified property exists.

[Visual Basic]
<Function(Name:="exists")>
Public Function Exists( _
ByVal name As String _
) As Boolean
[C#]
[Function(Name="exists")]
public bool Exists(
string name
);

#### Parameters

name
  The property to test.

#### Return Value

true if the specified property exists; otherwise, false.

#### Example

Execute a set of tasks if the "build.debug" property exists.

    <if test="${property::exists('build.debug')}">
        <echo message="Starting debug build" />
        <call target="init-debug" />
        <call target="build" />
    </if>

#### See Also

PropertyFunctions Class | NAnt.Core.Functions Namespace