I am creating same if else function on my program. And I want to make it more short but same logic.
if(!checkStringInput("Test", 14)){
elementHasError($element);
} else {
elementIsOk($element);
}
I am thinking this boolean condition can be a shorter one to:
CONDITION ? FUNCTION1; : FUNCTION2;
Thanks for the help!