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

This command returns a string that contains the expression used by the subject static parameter. The string is empty if no expression is in use. It is valid for static parameters only, as only static parameters can have expressions. If used on a dynamic parameter, the command will produce an error stating this.

## Functional area

Parameters

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getParameterExpression parameterName [-onMod string] [-solving]` |

### Arguments

> Macro (scroll-tablelayout)

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `parameterName` | string | yes | The name of the static parameter whose expression you want to obtain |

### Flags

> Macro (scroll-tablelayout)

| Name | Flag arguments | Argument type | Exclusive to | Comments |
| --- | --- | --- | --- | --- |
| `onMod` | 1 | string | — | The character that owns the parameter must be selected. If not, you can use the `onMod` flag to specify it. |
| `solving` |  |  |  | By default, the command operates on labeling setup parameters. For solving setup parameters, use the `solving` flag. |

## Return value

string