MV Recurring error message from different YEP plugins which doesn't really make sense

So I keep getting this error message at the same point in a block of script calling some images ( $gameScreen.showImage(...) ).
I'm pretty sure it was working fine yesterday, but then again I was working pretty late last night.

Problem is that this error was from YEP_BattleEngineCore first, turned off that plugin, and then the same error message appears in YEP_EquipCore.
Does anyone have any clue what Error this actually is, what I'm doing wrong and if I should just fix the broken brackets in the .js file?
1707128306629.png


Update:
Now gives me this error
1707128995551.png
unexpected token basically means that something is wrong with a javascript statement, in this case probably the conditional branch with a script condition of whatever event code is processed at that moment.

we need to see a screenshot of the event with that conditional branch to check what is wrong.

and you get different error messages when turning off plugins because the computer reports where it detects that there is a problem, not where the problem truly is, and some plugins are chained.
It's exactly what it says - that JavaScript is completely wrong.

1 - there's no semicolon after a conditional statement
2 - you have two open parentheses but only one close
3 - you have some weird mathematical operation as the argument for value() which takes only a numeric value of the ID of a variable

I would give you the correct code but I'm really unsure as to what you're trying to say.

Why aren't you just using the regular built-in Conditional Branch event command for this?
As Turan says. The reason for your second error is that you're passing "49 <= 1" as the argument to $gameVariables.value. This is a comparison, which turns the result into a boolean; 49 is not less than or equal to 1, so it evaluates to false. So this is the equivalent of having written $gameVariables.value(false). value expects a number, not a boolean. It calls clamp on the value to keep it within a certain range, but booleans, unlike numbers, don't have a clamp function to call.
Sorry for the late response. Found the issue was in a conditional branch as Andar stated. I recognised the snipped of code that was wrong as a part of my own code in a built-in conditional branch ( the plugin notice sent me on a wild goose chase and missed the obvious).
It's fixed now. Thank you all for you're help

Original thread: https://forums.rpgmakerweb.com/threads/recurring-error-message-from-different-yep-plugins-which-doesnt-really-make-sense.165475/