Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

multiple ternary in vuejs

You can paste it in "" or {{}} (in html or as text/html)

(test1 == 1) ? then1 : (test2 == 2) ? then2 : thenglobal

Test 1 will be cheked and then1 executed if true and same for test 2, it will
repeat until it reaches the end.

You can repeat this ∞
 
PREVIOUS NEXT
Tagged: #multiple #ternary #vuejs
ADD COMMENT
Topic
Name
2+7 =