First time trying this so please bare with me.
I want to return some elements based on one of three conditions. Currently the code works for two conditions:
<h1 id="largeh1">
{isEnvironmentBFE
? outputEnFr(
"BFE Environment English Text",
"BFE Environment French Text",
this.props.lang
)
: outputEnFr(
"Acme Environment English Text",
"Acme Environment French Text",
this.props.lang
)
// Want third condition here
}
</h1>
I'd like to add one more condition for if the environment is "isEnvironmentBFE_OR_BFERENTAL" - so when people hit this third environment, it gives them different English / French values. Would like to stick with a ternary operator if possible.
Any idea how I can add a third condition in here?
isEnvironmentBFE_OR_BFERENTAL ? 'New component' : (isEnvironmentBFE ? outputEnFr() : outputEnFr())