Dyskusje Q&A
Literally so confused
-1 Głos
2 odpowiedzi? : are called Ternary Operators.
ex.
var = booleanExp ? ValueIfTrue : ValueIfFalse;
and that ? literally means "Asking a Question" Asking if the Boolean Expression is True.
If the Boolean Expression returned true, the Value for "True" will be assigned to the variable.
If the Boolean Expression returned false, the Value for "False" will be the one that'll be assigned to the variable instead.
I'm not asking a question, I just wanna share this to you guys 😁
18 głosów
6 odpowiedziPopularne dzisiaj
Need suggestions
0 Votes
Best code for creating games?
0 Votes
Java full stack
0 Votes
progaming
1 Votes
Calculator
0 Votes
Anyone Learning Godot?
1 Votes
Duration of heart refilling
0 Votes