Is there any way in vb.net to do a equation similiar to
if 1 = 1 = 1 = 1 then
debug.write("Value is true")
else
debug.write("Value is false")
end if
if 1=1=1=2 then
debug.write("Value is true")
else
debug.write("Value is false")
The first "IF" would come out to true because all values are equal (1 = 1)
but in the second would come out to false because of the (1 =2 ) meaning that all of the values were not equal.
Is there anyway to do something similar to this in vb.net?
if 1 = 1 = 1 = 1 then
debug.write("Value is true")
else
debug.write("Value is false")
end if
if 1=1=1=2 then
debug.write("Value is true")
else
debug.write("Value is false")
The first "IF" would come out to true because all values are equal (1 = 1)
but in the second would come out to false because of the (1 =2 ) meaning that all of the values were not equal.
Is there anyway to do something similar to this in vb.net?