hopesfall
09-24-2009, 11:04 PM
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
if bln_one & bln_two & bln three = true then
execute code
mattle
09-24-2009, 11:14 PM
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,
if (condition1 && condition2 && condition3) then ...
where each condition is something like bin_one = true, etc.
I don't know what syntax VB uses for a logical AND, but it's a double-ampersand in most languages.
hopesfall
09-24-2009, 11:29 PM
I got it, nevermind....by the way the sytax for VB is as follows:
if (condition1 and condition2 and condition3 = true) then
execute
just the word and, no "&"