Is my syntax wrong?

It says SyntaxError: Unexpected Token {

but it looks fine to me. Isn't this how you're suppose to do it?

if(a.hp <= ((a.mhp/100) * 70)
{
a.atk*1.5;
}
else if(a.hp <= ((a.mhp/100) * 30)
{
a.atk*3;
}
else
{
a.atk*1;
}

I'm confused.
I think you're missing two ')', one after each of your if statements.
It should work if you put it like this:

Code:
if(a.hp <= ((a.mhp/100) * 70))
{
a.atk*1.5;
}
else if(a.hp <= ((a.mhp/100) * 30))
{
a.atk*3;
}
else
{
a.atk*1;
}
Oh I see it now. it was the ( ) and not { }.
Thanks for the help.

Original thread: https://forums.rpgmakerweb.com/threads/is-my-syntax-wrong.83279/