What can be inputted at the Skill's "Formula" bar?

I know that I always do something like this there: 4 * a.mat - 2 * b.mdf. But I saw someone put entirely different things there, like a conditional. Please tell me what can be inputted there and give clear examples. Thanks!

I've moved this thread to MV Support. Thank you.

I'm just gonna leave the link to this pinned thread here...
basically any valid script code in the language the maker uses (RGSSx for RMXP, RMVX and RMVXA or Javascript for RMMV/RMMZ)

the code has to result in a number that will become the damage number. That will be the last number processed, so the order of the code is important.
just be carful if have any characters with autobattle trait while adding things to damage formulas.
no issues if just never use autobattle.

but if do end up using it and 1 of the skills that actor can use does something like a.addstate as part of the formula they could end up getting that state even when they dont use the skill. its just a strange thing that happens with how the game tests every skill before the auto actually selects 1 to use.
(never had this happen to me since i dont use autobattle traits but its what ive been told could happen)

Original thread: https://forums.rpgmakerweb.com/threads/what-can-be-inputted-at-the-skills-formula-bar.142964/