I recently had a Ternary operation that is copied here below,
variable1 += (variable1.length < 1 ? " " : '|') +(array_varible1[elemento_for].length >0 ? array_varible1[elemento_for] : " ");
It works perfectly and does everything I'm asking for, but as I was doing it I realized that it is a simplified conditional if, I would like to know if someone can translate this Ternary operator to an if condition.
Thanks guys.