New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
What is c>a?1:0
0 Votes
1 AnswerTernary in if condition
1 Vote
5 AnswersTernary Operator
0 Votes
3 AnswersTernary operator
0 Votes
2 AnswersHow to read php
0 Votes
7 AnswersDraw this triangle [CHALLANGE]
19 Votes
23 AnswersDoes OR work with ternary?
2 Votes
6 AnswersWhat is ternary operator?
5 Votes
7 Answers? : 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 Votes
6 AnswersHot today
How to cast in python : 2
2 Votes
Bits
4 Votes
Polyalphabetic Cipher
0 Votes
Why didn't I get it?
1 Votes
No connection message
0 Votes