YEP Class Base Parameters, Setting Exp to specific numbers per level

I'm having a hard time figuring out the syntax of this plugin. What I want to do is literally just say how much more exp you need to get to each level (I limit the game to less than 99 levels) rather than use a formula, because my numbers don't follow a formula. So I will have a line entry for each of the 19 levels you can gain in my games.

Based on the example in the help file I was trying to use if/elseif, but I couldn't guess right in how to make it work. I'm not sure if it's directly using javascript here, or using a plugin command, though since it is listed under Lunatic Mode, I'm expecting thinking maybe the former.

This is the example:

<Custom Param Formula>
if (this.name() === 'Harold') {
value = level * 30 + 300;
} else {
value = level * 25 + 250;
}
</Custom Param Formula>
Read the bit after the example:
Replace ‘Param’ with ‘maxhp’, ‘maxmp’, ‘atk’, ‘def’, ‘mat’, ‘mdf’, ‘agi’, ‘luk’, or ‘exp’. The ‘value’ variable is the final result that’s returned to count as the base class parameter. The ‘level’ variable refers to the actor’s current level. The formula can be made any way you like as long as it returns a legal number.
* Note: The ‘exp’ stat here refers to the amount of exp needed to reach the next level.
So if you want to specify exp for each level separately, you could try something like this:
Code:
<Custom exp Formula>
if (level === 1) value = 10;
else if (level === 2) value = 20;
else if (level === 3) // etc
</Custom exp Formula>
Or I think this should be equivalent, perhaps a bit tidier:
Code:
<Custom exp Formula>
switch (level) {
  case 1: value = 10; break;
  case 2: value = 20; break;
  // etc
}
</Custom exp Formula>
Thanks!

I did try to puzzle out those instructions from the plugin before I asked...but I failed.

Both of your methods work perfectly.

Original thread: https://forums.rpgmakerweb.com/threads/yep-class-base-parameters-setting-exp-to-specific-numbers-per-level.105590/