Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF In C#?
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Miscellaneous
Thread ID:
01455229
Message ID:
01455332
Views:
51
>>>Any way to do this in C# like VFP's IIF()?
>>>
>>>
>>>if (Checked)
>>>{
>>>    _CheckItemsCount++;
>>>}
>>>else
>>>{
>>>    _CheckItemsCount--;
>>>}
>>>
>>
>>
_CheckedItemsCount+=    (Checked) ? 1:-1;
>
>Never seen this before. Can you explain the syntax?

Tut, tut, Kevin ;-) Can't you find the ? operator in help?
Previous
Reply
Map
View

Click here to load this message in the networking platform