---
title: "hasParameter"
canonical: "https://help.vicon.com/space/ShogunPost115/276206872/hasParameter"
format: markdown
---
# Description

Determines if a parameter exists on a character.

Returns true if the given parameter exists on the given character and false if it does not.

## Functional area

Parameters

# Command syntax

## Syntax

|  |
| --- |
| `hasParameter characterName parameterName [-solving]` |

### Arguments

> Macro (scroll-tablelayout)

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `characterName` | String | Yes | Defines the name of the character to check if the parameter exists on. |
| `parameterName` | String | Yes | Defines the name of the parameter. |

### 
    Flags



    See above syntax.  



> Macro (scroll-pagebreak)

## Return value

boolean

Returns true if the character has the parameter and false if it doesn't.

## Examples

```plaintext
// Check if the Character named "Bob" has a
// parameter named "UpperArmLength"
if(`hasParameter "Bob" "UpperArmLength"`)
  {
 print "Bob has a parameter named UpperArmLength";
  }
else
  { 
 print "Bob does not have a parameter named UpperArmLength";
  }
```

# Additional information

## Related commands

- [addParameter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276201713)
- [listParameters](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276211422)
- [removeAllParameters](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276206721)
- [removeParameter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276205508)
- [removeUnusedParameters](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276202183)
- [setParameter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276202195)