---
title: "Setting Variables in Command Attributes"
canonical: "https://docs.infoblox.com/space/NCSG/23199831/Setting%20Variables%20in%20Command%20Attributes"
format: markdown
---
You can declare a special variable type, called a SET variable, in `Action-Commands` and` Trigger-Commands` attributes of a CCS script. The following examples illustrate how SET variables may be used to keep track of a state.

An `Action-Command` attribute declaration also illustrates the valid use of an equals sign operator (=):

`Action-Commands:`

`SET: $updateMade = "no"`

In `Action-Commands` and `Trigger-Commands` attributes, a SET variable can refer to a list in NetMRI and reference its data (also see the section *<span style="color: #0000ff">[The](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199984)</span>*[ ](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199984)*<span style="color: #0000ff">[getListValue(](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199984)</span>*[ ](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199984)*<span style="color: #0000ff">[)](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199984)</span>*[ ](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199984)*<span style="color: #0000ff">[Function](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199984)</span>*):

`Action-Commands:{$location eq "West"}`

`SET: $log1 = getListValue (NetworkServers,Geo,WS1,NMAddr,null)`

If the value found in the` $location` variable happens to be West, the script opens the list `NetworkServers` from NetMRI and searches for the specified value.