Jump to content

Ternary conditional operator

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Cap601 (talk | contribs) at 12:33, 20 May 2004. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

This a C programming method of performing an if statement. The syntax is:

[Test Condition] ? [If True] : [If False]