> For the complete documentation index, see [llms.txt](https://muradkarakas.gitbook.io/sodium_documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://muradkarakas.gitbook.io/sodium_documentation/language-reference/built-in-triggers/item_modified-trigger.md).

# "item\_modified" trigger

#### Description

`item_modified` trigger function is optional. if it is needed, it must be in [Code Behind File](https://muradkarakas.github.io/Sodium-Manual/code_behind_file.html).\
&#x20;Whenever a control/data block item's value has been changed, item modified trigger is fired.

**Declaration**

Trigger function's name should conform to the following format:

`blockName + "." + itemName`

```
void ItemModifiedTriggerFunctionName(char oldValue);
```

#### **Example**

```
void emps.has_car(char oldValue) {
        if ( :emps.has_car == "E" ) then
                show_block("cars", true);
        else
                hide_block("cars", true);
        end if;
}
```
