I already have a switch node with 17 rules comparing app_name with the various TV channel names, in order to setup the adb_commands to start the various apps on the ShieldTV.
What I am wanting to do here is check whether the desired app is already running (or has been started correctly).
Somehow I doubt that node-RED developers included an option for “msg.” prefix if “==” can only be used to compare with a literal string.
Then the way you have it but there is a misspelling. Is app-name turning into app_name when you choose the copy path option? That dash is likely the cause of the problem.
That was it !. I also took the opportunity to change the name of the name of “app-name” to “target_app”, since that is the name of the app I am wanting to run on the ShieldTV. Tested and working well.