Instead of doing good, old ternary operator, which looks and works like
JavaScript:
condition ? "shit to do if condition is true" : "shit to do if condition is false"
It works ONLY with two possible outputs, mind, examples
JavaScript:
2 + 2 == 4 ? "math works" : "math is not working, start running"
get_penis_count(player) > 1 ? "why do you need more than 1 pp...why???" : "nice cock bro"
Ternary is just a short version of ordinary 'if/else' expression
JavaScript:
if(condition)
"shit to return on true"
else
"shit to return on false"
And they invented something that looks like it, but have broken rules.
Look at this
It doesnt translates into sane/simple/understandable structure. The more shit you wants to put there the longer and confusing it becomes. Situation where two/three/etc class gets unique line would look like
JavaScript:
[pc.cl whitemage blackmage savs tobs|ooo, shiny| edgy mofo god deum | cait is top tier waifu(debatable)| we are here in all of it for it without the end of this, arent we?|no class??? POWER FANTASY ALERT!!!11111oneone]
which is...try to insert new class line in there, without breaking the order.
It translates into
JavaScript:
if(pc.cl is whitemage)
"ooo, shiny"
else
if(pc.cl is blackmage)
"edgy mofo gaud deum"
else
if(pc.cl is savs)
"cait is top tier waifu(debatable)"
else
if(pc.cl is tobs)
"we are here in all of it for it without the end of this, arent we?"
else
"no class??? POWER FANTASY ALERT!!!11111oneone"
What it begs for, and how probably works on the inside, is a switch/case statement, which works like
JavaScript:
switch(condition)
{
case first:
do shit;
break;
case second:
do other shit;
break;
case unlimited:
completely other shit;
break;
default:
goes here if all other cases failed;
break;
}
so function like
Code:
switch(what should be checked, [{condition, shit to do on true}, {condition, shit to do on true}, {cond...you get the idea, right])
which for this case would looks like
JavaScript:
switch(pc.cl, [{whitemage, "ooo, shiny"}, {blackmage, "edgy mofo gaud deum"}, {savs, "cait is top tier waifu(debatable)"}, {tobs, "we are here in all of it for it without the end of this, arent we?"}, {default,"no class??? POWER FANTASY ALERT!!!11111oneone"} ])
Effectively what it do is adds more punctuation, so its now clearly visible what condition connected with which text.