# getNodeType {#getnodetype}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`getNodeType()`

## Arguments {#arguments}

None

## Details {#details}

Return the type of the node.

0: data node

1: agent

2: controller

3: standalone mode

4: compute node

## Examples {#examples}

```
getNodeType();
// output: 2
```

