S Steve-h Member Oct 27, 2021 #1 Is it permissible to compound the result of an If Then statement ? For example If mode=2 Then ((a=1) & (b=2) & ( c=3)) It seems happy with a=1 but not b and c.
Is it permissible to compound the result of an If Then statement ? For example If mode=2 Then ((a=1) & (b=2) & ( c=3)) It seems happy with a=1 but not b and c.
DonManfred Expert Licensed User Longtime User Oct 27, 2021 #2 B4X: If mode=2 Then a = 1 b = 2 c = 3 End if Upvote 1
agraham Expert Licensed User Longtime User Oct 27, 2021 #3 No. It doesn't know how to parse it. & is not a statement separator but a string concatenation operator. You need to use a full If...End IF statement as above ^ Upvote 1
No. It doesn't know how to parse it. & is not a statement separator but a string concatenation operator. You need to use a full If...End IF statement as above ^