Client Tag change script error

I am getting the following error:
NameError: name ‘newValue’ is not defined

while trying to run this script
value = newValue.value

Is that really the entirety of your script, or are you trying to simplify for the sake of the forum?

Try event.newValue:

value = event.newValue

Err, sorry missed this. Ignore my suggestion.

An if statement follows depending on valve the variable ‘value’ holds
that part of the script is working ok because if I set value to a constant it operates as expected.
Its the mapping of the change of number of tag to value that isn’t working

its running perfect this morning!!
not sure what changed!
thanks for the replies