internet.com
You are in the: Small Business Computing Channelarrow
Small Business Technology
» ECommerce-Guide | Small Business Computing | Webopedia | WinPlanet
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
   Technology Jobs
   About Us
   Link to Us
   Advertising

   rss/xmlrss/xml  

Become a Marketplace Partner



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

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

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


terry operator Products :


Top Store Offers:
Amazon Marketplace  38.64Hatch 4582 Streetguard MK4 Glove w/Dyneema, Black, MediumHatch provides quality gloves and other protective gear for uniformed duty, tactical, correct...

Compare all matches:
1 Store Offers


internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs