Why do I get unused variable warning in Visual Studio Code, when there quite clearly is a use - just 3 lines below the offending variable declaration? Here the warning is given for variable
found_r_object_id_in_cara
the variable is referenced in an 'if' statement a few lines below the declaration.
![enter image description here]()