ternary operator


A ternary operator is some operation operating on 3 inputs. It’s a shortcut for an if-else statement, and is also known as a conditional operator.

In Perl/PHP it works as: “boolean_condition?true_value:false_value”
In C/C++ it works as: logical expression? action for true : action for false

Read Also:

  • terrestrial

    (adj.) Of or relating to the earth. The term is used in reference to satellite technologies to distinguish between what is out in space and what is located on the earth��s surface.

  • tertiary colors

    Tertiary colors are the resulting color formed when an equal amount of a primary and a secondary color are mixed. The primary and secondary color must be beside each other on the color wheel. For example, a mixture of 50-percent red and 50-percent magenta would result in the tertiary color of orange. See “The Science […]

  • test-driven development

    Abbreviated as TDD, test-driven development is a concept in computer software programming to ensure code quality. The TDD cycle concept requires software programmers to develop in short iterations then test the code and clean up any new deficiencies in code quality as they arise. As each iteration is added the testing and clean-up is repeated […]

  • tethering

    Tethering enables your cellular telephone or similar Internet-enabled mobile device to connect other devices such as netbooks, laptops or PDAs to the Internet. Mobile phones that offer tethering typically connect to other devices via Bluetooth or a USB cable in order to provide them with Internet access. A key advantage of tethering is that it […]

  • texel

    Short for Texture Element. Like a pixel, a texel is the base unit of a graphic, although texels make up textured graphics – graphics that define the surface of three dimensional objects. The base unit of the surface of a 3D brick wall would be a texel, while a two-dimensional wall would consist of pixels.


Disclaimer: ternary operator definition / meaning should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. All content on this website is for informational purposes only.