Unity Learn home
View Tutorial Content

Ternary Operator

Tutorial
Intermediate
+10 XP
5 Mins
(2090)
Overview
Skills
Summary
How to utilize the Ternary Operator to build simple, shorthand IF-ELSE logical conditions.
Select your Unity version
Last updated: January 11, 2022
2021.3
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.x
4.x
Language
English
Also included in
Ternary Operator