internet.com
You are in the: Small Business Computing Channelarrow View Sites +
Small Business Technology
» ECommerce-Guide | Small Business Computing | Webopedia | WinPlanet |  »Close
Webopedia.com
Enter a word for a definition... ...or choose a computer category.
 
 

menu
   Home
   Term of the Day
   New Terms
   Pronunciation
   New Links
   Quick Reference
   Did You Know?
   Categories
   Tech Support
   Webopedia Jobs
   About Us
   Link to Us
   Advertising
  

talk to us
   Submit a URL
   Suggest a Term
   Report an Error

internet.com
Developer
International
Internet Lists
Internet News
Internet Resources
IT
Linux/Open Source
Personal Technology
Small Business
Windows Technology
xSP Resources
Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers
commerce
  Be a Commerce Partner
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ternary operator
Last modified: Thursday, April 07, 2005 

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

E-mail this definition to a colleague


For internet.com pages about ternary operator . Also check out the following links!

Related Links

About.com Perl & PHP Glossary 
This About guide provides information on operators and expressions in PHP and Perl.

ZeusCMD - Design and Development Tutorials 
This C++ Programming Tutorial covers information related to Ternary Operator.

related categories

Programming Languages

related terms

C

C++

Perl

PHP


webopedia
Give Us Your
Feedback




JupiterWeb networks:

internet.comearthweb.comDevx.com graphics.com

Search JupiterWeb:

Jupitermedia Corporation has two divisions: Jupiterimages andJupiterWeb

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers