Top "Conditional-operator" questions

The conditional operator is a ternary operator that is part of the syntax for a basic conditional expression in several programming languages.

Ruby ternary operator without else

Is there a ruby idiom for "If do-this," and "do-this" just as a simple command? for example, I'm currently doing …

ruby operators conditional conditional-operator
Conditional operator in Coffeescript

I really like this: var value = maxValue > minValue ? minValue : maxValue; Is there something equally concise in Coffescript?

coffeescript conditional-operator
To ternary or not to ternary?

I'm personally an advocate of the ternary operator: () ? : ; I do realize that it has its place, but I have come …

conditional-operator
What is ?: in PHP 5.3?

Possible Duplicate: What are the PHP operators “?” and “:” called and what do they do? From http://twitto.org/ <?PHP …

php php-5.3 ternary-operator conditional-operator language-construct
How to implement ternary conditional operator in MySQL

I want to implement ternary conditional operator in MySQL. I have a table in which one field id exist. Its …

mysql conditional-operator
Ternary operator is twice as slow as an if-else block?

I read everywhere that ternary operator is supposed to be faster than, or at least the same as, its equivalent …

c# performance conditional-operator
C# if-null-then-null expression

Just for curiosity/convenience: C# provides two cool conditional expression features I know of: string trimmed = (input == null) ? null : input.…

c# .net conditional-operator conditional-expressions
? operator without else-part

I use C# ? operator when I have if-statements that affects one row and it's all good. But lets say I …

c# theory conditional-operator
Coalesce operator and Conditional operator in VB.NET

Possible Duplicate: Is there a conditional ternary operator in VB.NET? Can we use the Coalesce operator(??) and conditional ternary …

vb.net conditional-operator null-coalescing-operator