Ternary Operators

Ternary Operators:

VB.NET – IIf ()

IIf (predicate, valueiftrue, valueiffalse)

C# – ?:

predicate ? valueiftrue : valueiffalse
Advertisements

One response to “Ternary Operators

  1. hi to all timscyclingblog.wordpress.comers this is my frst post and thought i would say a big hello to yous –
    regards speak again soon
    garry

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s