“V-ID/ { … }” construct when when combined with symbol “~” allows to trap the events. As in the following examples the symbol “~” is required to be used for trapping the event from the concrete element. At that the code V-ID/{…} will be processed when the events of the element or elements preceded by the symbol “~” would occur.

Example:

<item addr="524:248" LAMP512="512:16"  RGB524="524:24" DIM524=":27" name="Message processing" type="script">
V-ID/ {
if([~LAMP512.0] == 1) {
setStatus(2020:32, {1, "Lamp from  512"});
}
if([~RGB524.0] == 1) {
setStatus(2020:32, {1, "RGB from  524"});
}
   
if([~DIM524.0] == 1) {
setStatus(2020:32, {1, "Dim  from  524"});
}
}
</item>

After compilation:

524/ {
if([~512:16.0] == 1) {
setStatus(2020:32, {1, "Lamp from 512"});
}

if([~524:24.0] == 1) {
setStatus(2020:32, {1, "RGB from 524"});
}
   
if([~:27.0] == 1) {
setStatus(2020:32, {1, "Dim  from 524"});
}
}

Result:
When clicking one of the elements LAMP512, RGB524 orDIM524 the corresponding message will be displayed:

"Lamp from 512"
"RGB from 524"
"Dim  from 524"