Results 1 to 3 of 3
Thread: VB if conditions
-
09-24-2009, 11:04 PM #1WHT Addict
- Join Date
- Feb 2008
- Posts
- 163
VB if conditions
How would I add more than one condition inside an if statement?
I need to check that 3 Boolean variables are true to continue... Something like
Code:if bln_one & bln_two & bln three = true then execute code
-
09-24-2009, 11:14 PM #2Web Hosting Master
- Join Date
- May 2009
- Posts
- 766
I don't know the specific VB syntax, but conceptually, you would need to compare each variable against boolean true, and join them with logical ANDs.
Ie,
PHP Code:if (condition1 && condition2 && condition3) then ...
I don't know what syntax VB uses for a logical AND, but it's a double-ampersand in most languages.
-
09-24-2009, 11:29 PM #3WHT Addict
- Join Date
- Feb 2008
- Posts
- 163
I got it, nevermind....by the way the sytax for VB is as follows:
Code:if (condition1 and condition2 and condition3 = true) then execute
Last edited by hopesfall; 09-24-2009 at 11:36 PM.
Similar Threads
-
Terms and Conditions
By danisgood in forum Running a Web Hosting BusinessReplies: 3Last Post: 07-25-2009, 04:10 PM -
Need help with conditions in php
By praxedis in forum Programming DiscussionReplies: 2Last Post: 05-10-2005, 03:04 PM -
Terms and conditions
By chrisblack in forum Other Offers & RequestsReplies: 3Last Post: 09-16-2003, 12:27 AM -
Will sell if the conditions are right
By SellHostCo in forum Other Offers & RequestsReplies: 1Last Post: 08-29-2003, 10:57 AM -
Terms and conditions
By PaulH in forum Running a Web Hosting BusinessReplies: 3Last Post: 09-07-2002, 08:49 PM