How to add "or if" conditions to one skill in MV?

The original formula: if (b.isStateAffected(24)) {70} else {10}

I tried this: (if (b.isStateAffected(24)) || if (b.isStateAffected(17))){1000} else {10} but it didn't work:
Way too many brackets.
Code:
if (b.isStateAffected(24) || b.isStateAffected(17)){1000} else {10}
(condition || condition) {result} else {result}
For the damage formula section? You might be better off using the ternary operator, which is a condensed if/else in terms of assigning values:

Code:
(b.isStateAffected(24) || b.isStateAffected(17)) ? 1000 : 10
Thank you all for your replies. It worked perfectly.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-add-or-if-conditions-to-one-skill-in-mv.95991/