Variables pointing to an Item or object

Hi,

I’m trying to set a variable to refer to an Item, in order to implement a unique rule instance of multiple rules for my Nodon remote control.
rule "Nodon button pressed"
when
Item zwave_device_1584ff6d7f7_node8_scene_number received update
then
logInfo(“rules”, "Nodon - Start with Value: " + zwave_device_1584ff6d7f7_node8_scene_number.state)

For such, I have the following rule:

rule "Nodon button pressed"
when 
    Item zwave_device_1584ff6d7f7_node8_scene_number received update
then
    var sceneValue = zwave_device_1584ff6d7f7_node8_scene_number.state
    if (sceneValue == 10){
        logInfo("rules", "2: " + zwave_device_1584ff6d7f7_node3_switch_binary)
        itemR = zwave_device_1584ff6d7f7_node3_switch_binary
        logInfo("rules", itemR)
    } 
    if (sceneValue == 20){
        logInfo("rules", "2: " + zwave_device_1584ff6d7f7_node5_switch_binary)
        itemR = zwave_device_1584ff6d7f7_node5_switch_binary
        logInfo("rules", itemR)
    } 
    sendCommand(ItemR, ON)
end

When testing the above scripts I get the following error:

2016-11-12 21:04:17.453 [INFO ] [eclipse.smarthome.model.script.rules] - 2: zwave_device_1584ff6d7f7_node3_switch_binary (Type=SwitchItem, State=ON, Label=Switch, Category=null)`
2016-11-12 21:04:17.458 [ERROR] [.script.engine.ScriptExecutionThread] - Rule 'Nodon button pressed': An   error occured during the script execution: Couldn't invoke 'assignValueTo' for feature JvmVoid:  (eProxyURI:    nodon.rules#|::0.2.0.2.0.1.1.0.1::0::/1)

Is there anything I’m doing wrong? or is this a limitiation?

Thanks,