your method is not correct. The word "speed" is impossible as a name for a variable.
I added a Variable object with the name "speedValue" of type real.
Then the code will work:
if SingleProc.failed or
You must think about the event, when this method is called. The entrance control is not good choice.
If you want to catch the event of a failure of the objects SingleProc I recommend to use the control "Fail" in the menu of the SingleProcs Tools > Edit Controls