plugin commands generally aren't intended to be able to parse JS. I haven't checked how Yanfly set those ones up, but seeing as how it has no parameters I doubt it can and is just reading the string for the command.
you could use script in move routes. you'd need to use a script call to set the self switch, but it should work with a conditional like the way you're trying.
you could use script in move routes. you'd need to use a script call to set the self switch, but it should work with a conditional like the way you're trying.