---
title: "hasParameter"
canonical: "https://help.vicon.com/space/Shogun18/13669022/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.  
 

## Return value

boolean

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

> Macro (scroll-pagebreak)

## 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/Shogun18/pages/13669116)
- [listParameters](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668972)
- [removeAllParameters](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668234)
- [removeParameter](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668246)
- [removeUnusedParameters](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668242)
- [setParameter](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668149)