Quantcast
Channel: How to use OR in IF, ELSE, THEN Condition - VB.Net - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by Paul Abbott for How to use OR in IF, ELSE, THEN Condition - VB.Net

I know this isn't answering your question directly, but you might want to try something cleaner and easier to read:Dim badNames = New List(Of String) From { "Eagan Jones", "Farient Advisors", "Glass...

View Article


Answer by K-Dawg for How to use OR in IF, ELSE, THEN Condition - VB.Net

Try OrElse!If AdvisoryFirms.AdvisoryFirmNameTextBox.Text <> "Egan Jones" OrElse _ AdvisoryFirms.AdvisoryFirmNameTextBox.Text <> "Farient Advisors" OrElse _...

View Article

Answer by Marc B for How to use OR in IF, ELSE, THEN Condition - VB.Net

You're using OR, which means the if() test can bail out as soon as ANY of the conditions evaluate to boolean TRUE. e.g. FALSE or FALSE or FALSE or TRUE or FALSE .... FALSE = TRUEIf your .Text is NOT...

View Article

How to use OR in IF, ELSE, THEN Condition - VB.Net

Trying to write a IF, ELSE, THEN statement with a few conditions. Below is my vb.net code:If AdvisoryFirms.AdvisoryFirmNameTextBox.Text <> "Egan Jones" Or _...

View Article
Browsing latest articles
Browse All 4 View Live