How to make three state judgments gracefully in js react,vue template

condition:1?2 can only judge two states. I render three nodes with three if

.
Aug.12,2021

condition===1?'a':condition===2?'b':'c'

I don't quite understand the title
if you are rendering tag, you can only use if-else
if you are rendering text, it is similar to this: [condition]

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e47168-44bf9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e47168-44bf9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?