M
Masahiro Ito
I am trying to do an if statement that could have many different matches.
In sql I would do it like:
SELECT *
FROM Customer
WHERE Staff IN (10, 15, 23, 14)
In VB, I would do:
If Staff.Count = 10 or Staff.Count = 15 or Staff.Count = 23 or
Staff.Count = 14 Then
Console.writeline(Staff.Count.tostring)
End If
Is there any way to match to a list, without using an arraylist,
collection, icomparer?
I have a boolean, with a list of a dozen boolean variables. Can I do it
with boolean as well?
ie:
if (b1, b2, b3, b4, b4) = False Then
Console.writeline("At least one of those variables was false")
End If
Thanks for ideas!
Masa
In sql I would do it like:
SELECT *
FROM Customer
WHERE Staff IN (10, 15, 23, 14)
In VB, I would do:
If Staff.Count = 10 or Staff.Count = 15 or Staff.Count = 23 or
Staff.Count = 14 Then
Console.writeline(Staff.Count.tostring)
End If
Is there any way to match to a list, without using an arraylist,
collection, icomparer?
I have a boolean, with a list of a dozen boolean variables. Can I do it
with boolean as well?
ie:
if (b1, b2, b3, b4, b4) = False Then
Console.writeline("At least one of those variables was false")
End If
Thanks for ideas!
Masa