---
url: /flow/guide/scripting-reference/functions/file/ispathdelimiter.md
---

# IsPathDelimiter

## Declaration

`Function IsPathDelimiter( const S : string; Index : Integer) : Boolean`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := IsPathDelimiter(Source.FileCon.CurrentFilename, 2);
end;
```

## Description

Checks the character at the given Index to determine if it is a path delimiter. The above example would return True is the path is "c:\program files...". Index 2 refers to the backslash.
