---
title: "isSelectionSet"
canonical: "https://help.vicon.com/space/ShogunPost121/1253736957/isSelectionSet"
format: markdown
---
# Description

Determines whether a named selection set exists in Shogun Post.

The selection sets that are loaded into Shogun Post are determined by the selection set file specified in the **Preferences** and any selection sets you make via scripting.

The isSelectionSet command can be used to determine if a selection set of a given name exists in Shogun Post.

## Functional area

Selection

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `isSelectionSet setName` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `isSelectionSet` | string | yes | The name of the selection set to look for. |

### Flags

None

## Return value

boolean

Returns true if the given set exists, false if it does not.

> Macro (scroll-pagebreak)

## Examples

```plaintext
// See if the selection set setLeftFoot exists in Shogun Post.
if(`isSelectionSet "setLeftFoot"` == true )
  { 
print "The selection set setLeftFoot is present in Shogun Post";
  }
```

# Additional information

## Related commands

- [getSelectionSetNodes](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736714)
- [getSelectionSets](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737561)
- [getSelectionSetSets](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736829)
- [selectionSet](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736456)
- [selectSet](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737834)