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:
01455231
Views:
94
>Any way to do this in C# like VFP's IIF()?
>
>
>if (Checked)
>{
>    _CheckItemsCount++;
>}
>else
>{
>    _CheckItemsCount--;
>}
>
There is conditional ? operator in C# (C++), but I think this syntax is easier to understand.

http://msdn.microsoft.com/en-us/library/ty67wk28.aspx
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform