in reply to perl syntax help for ternary operator

How would I change the above syntax to accommodate two more conditions to check the other possible values in $string and show the desired results.

make a subroutine  <td> @{GhoshLevels()}  </td>