javascript return value only if true code example Example: javascript if return true false return condition ? value : otherValue;