What is IIF in C#?

Viewed 69002

Possible Duplicate:
iif equivalent in c#

I have several lines of code using IIf in VB and I am trying to convert this code to C#.

Here's an example where I need help:

intCurrency = IIf(or.Fields("Currency").Value = "USD", 100, 0)

How do I change the above line of code to C#? Is there a short-circuit evaluation operator in C#?

9 Answers
Related