# VALUES is not defined

**URL:** <https://forum.genieacs.com/t/values-is-not-defined/92>\
**Category:** Uncategorized\
**Created:** [May 2, 2019, 7:49pm UTC](https://forum.genieacs.com/t/values-is-not-defined/92 "2019-05-02T19:49:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mths0x5f](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mths0x5f/32/92_2.png) [@mths0x5f](https://forum.genieacs.com/u/mths0x5f)\
**Post date:** [May 2, 2019, 7:49pm UTC](https://forum.genieacs.com/t/values-is-not-defined/92/1 "2019-05-02T19:49:20Z")

</div>

I am trying to create a virtual parameter that is editable, but I am getting a error with a extremely simple code, from what I understood of the docs: [https://github.com/genieacs/genieacs/wiki/Virtual-Parameters](https://github.com/genieacs/genieacs/wiki/Virtual-Parameters).

Fault:

```
NAME:
ReferenceError

MESSAGE:
VALUES is not defined

STACK:
ReferenceError: VALUES is not defined
at RunningDiagnostics:3:1

```

RunningDiagnostics VirtualParameter:

```
let diags = ''
if (VALUES && VALUES.value) {diags = VALUES.value[0]}
return {writable: true, value: [diags, 'xsd:string']}
```

---

<div class="post-metadata">

**Author:** ![zaidka](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/zaidka/32/9_2.png) [@zaidka](https://forum.genieacs.com/u/zaidka)\
**Post date:** [May 21, 2019, 5:50am UTC](https://forum.genieacs.com/t/values-is-not-defined/92/2 "2019-05-21T05:50:44Z")

</div>

VALUES isn’t used anymore. Use args instead. In vparams, args is [, , ,].
