# target::has-executed

[This is preliminary documentation and subject to change.]

Checks whether the specified target has already been executed.

### Usage

`bool target::has-executed(name)`

### Parameters

Name | Type | Description
--- | --- | ---
name | string | The target to test.

### Return Value

true if the specified target has already been executed; otherwise, false.

### Exceptions

The function will fail in any of the following circumstances:

- Target name does not exist.

### Requirements

Assembly: NAnt.Core (0.91.3881.0)