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

> Macro (scroll-tablelayout)

|  |
| --- |
| `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/ShogunPost121/pages/1253736903)
- [listParameters](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738291)
- [removeAllParameters](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738025)
- [removeParameter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253739919)
- [removeUnusedParameters](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736542)
- [setParameter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737311)