That must be javascript. function is not a keyword in java.
Type: Posts; User: Norm
That must be javascript. function is not a keyword in java.
I didn't try to compile the code to see if it had syntax errors. Does the posted code compile ok?
Put what is before the ? into the if condition
put what is between the ? and the : in the true part
put what is after the : into the else part
each section will return its value.