How can I resolve this error


The error is:
The data (/localhost/DevicesLearningProject/tag_test_device/OnBegin:)Device in package DevicesLearningProject is ambiguous with this definition:
data (/localhost/DevicesLearningProject/tag_test_device/OnBegin:)Device in package DevicesLearningProject(3532)

Thanks

You already declared a variable named ‘Device’ on the line above the error !

Also what you could do for a better syntax would be

for(Device : AllCreativeDevices, CreativeDevice := creative_device_base[Device]):
    Print("Works the same")
1 Like