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.
The event in question was created from an event spawner so I wasn't sure if the regular script call would work for it, but
if (this.x == 19) {$gameSelfSwitches.setValue([this._mapId, this.eventId(), 'C'], true);} seems to be 100% working.