The format of your ternary statement is incorrect. It's question mark then colon, but you have a semicolon which indicates the end of a code statement in JavaScript.
Then you're doing the wrong thing entirely. A ternary statement is "if-else" - it will only ever do
one of the things.
If you want to apply the state conditionally, then simply use "if." Then if the damage is done either way, it's its own statement. So:
Code:
if (b.elementRate(13)>1) b.addState(9); 100
Note that if you're using the auto battle trait anywhere or if this skill is given to enemies, adding a state in the damage formula is not a good idea because it may result in targets getting the state without actually having the skill executed on them.
It would be better to use something like Yanfly's Skill Core and put it into a Pre-Damage Eval notetag.