Ternary conditional operator
id:
ternary-conditional-operator-173-18481098
title:
Ternary conditional operator
text:
In computer programming, the ternary conditional operator is a ternary operator that is part of the syntax for basic conditional expressions in several programming languages. It is commonly referred to as the conditional operator, conditional expression, ternary if, or inline if. An expression if a then b else c or a ? b : c evaluates to b if the value of a is true, and otherwise to c. One can read it aloud as "if a then b otherwise c". The form a ? b : c is the most common, but alternative synt
brand slug:
wiki
category slug:
encyclopedia
description:
Conditional operator in computer programming
original url:
https://en.wikipedia.org/wiki/Ternary_conditional_operator
date created:
2004-05-20T12:33:50Z
date modified:
2024-09-02T23:54:25Z
main entity:
{"identifier":"Q2984985","url":"https://www.wikidata.org/entity/Q2984985"}
image:
fields total:
13
integrity:
15