First, I do not do JS so apologies in advance for the noob question.
Like the title says, I have this line:
stringValue = numericValue >= 1000 ? numericValue.toString().substr(0, numericValue.toString().length - 3) + "TB" : numericValue + "GB";
Basically, what it does is if the value is over 1000, it appends “TB”, and under 1000 it appends “GB”. I need a third condition where if it’s under 50 it gets rid of the text altogether.
I can see that this is like an if/else statement, but I can’t quite decode it and figure out how to add in the third condition. Thanks in advance!
This should work: