Interested in any of our services: Request a call

VB equivalent of the C# ? operator

In C# you can quickly do if statements by using the ‘?’ operator, and check for null values by using the ‘??’ operator.

This is done with the following syntax:

int i = 1;
string result;
i > 1 ? result = "i is greater than one" : result = "i is one or less";


The same shorthand coding style can be achieved in VB.Net (since 2008) by using the IIf function as follows:

Dim i as Integer? = 1
Dim result as String
' C# '?' equivalent
IIf(i > 1, result = "i is greater than one", result = "i is one or less")
' Or C# '??' equivalent
IIf(i is nothing, result = "i is null!", result = "i is a number")
Read more about Dave Radley on

Related to VB equivalent of the C# ? operator

Eclipse Mining

A mine planning, tracking, QC and reporting package. Used at gold mines in Ghana, Cote d’Ivoire, Eritrea and soon many others.

Bisha Mining

We further developed the Mining Planning Database for a small surface gold mine in Eritrea. Small in the mining World is a startup cost of around $300m and we like to think that we played a part in keeping those costs to a minimum.

INEA Rebuild

A database platform that enables Estate Agents to share and collaborate. What started as a fairly small data sharing application, now has a suite of specialist tools that are all designed to meet the needs of a British Estate Agent - from geo-mapping of properties to automated ‘colour particulars’ and including a range of dedicated email marketing tools that can transform productivity.
The rebuild of the INEA website blends our knowledge of mapping with big data so that agents can share their properties with other members.

Knowledge Base

There is no need to manually upload your data to Rightmove

Rightmove have put back their switch-over date until 31st July 2016 and are telling agents that they'll need to manually upload their property data if they can't supply their data in the Real Time Data Feed format.

Data Visualization Summit

One of the big growth areas in technology is data visualization so we went along to the Data Visualization Summit at the Royal Garden Hotel in London to find out what the Industry Leaders had to say on the matter.