---
title: "Action-Filter"
canonical: "https://docs.infoblox.com/space/NCSG/23199933/Action-Filter"
format: markdown
---
**Used** **In:** Action sections

**Status:** Optional

The `Action-Filter` attribute is similar to the `Script-Filter` discussed in [ ](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199816)<span style="color: #0000ff">[ ](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199816)</span>*<span style="color: #0000ff">[Script](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199816)</span>*<span style="color: #0000ff">[ ](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199816)</span>[ ](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199816)<span style="color: #0000ff">[ ](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199816)</span>*<span style="color: #0000ff">[Section](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199816)</span>*<span style="color: #0000ff">[ ](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199816)</span>[ ](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199816)<span style="color: #0000ff">[ ](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199816)</span>*<span style="color: #0000ff">[Attributes](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199816)</span>*<span style="color: #0000ff">[ ](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199816)</span>[ ](https://infoblox-docs.atlassian.net/wiki/spaces/NCSG/pages/23199816), with the exception that an `Action-Filter` can reference SET variables. The purpose of the` Action-Filter` attribute is to include or exclude certain devices from execution by the `Action-Commands` attribute defined in the Action section.

If the filter evaluates to "true," the script executes subsequent `Action-Commands`. If the filter evaluates to "false", further `Action-Commands` will not execute. An absence of this attribute within an action section means the filter will automatically be set to "true" and the `Action-Commands` execute for all devices.

Any SET variable defined in this attribute can be referenced by following parts of the CCS script.

**Example**

`Action-Filter:`

`$runscript ne "no" and $do_acl ne "" and $do_contents ne "" and`  
` $change_ok eq "yes"`