Most programmers probably already know this, but I have observed that for beginner programmers, it is quite frequently unknown or overlooked.
When you evaluate expressions you need not evaluate "If <expression> = true then", you simply evaluate "If <expression> then"
This is because <expression> already produces a Boolean value, and an if then branch breaks down to the following logic:
(1+2=4) = true then
'True was the
'False was the
> = true then
'True was the case
'False was the case
(((((1 + 2) = 3) =
Hi Paul, I think it will be nice if you add more into this article about short-cutting and various ways of writing if and logic in VB.NET (I think there is a syntax, but I always forgot exact details). If you also