giga Well-Known Member Licensed User Longtime User Oct 18, 2021 #1 I may be overthinking this, but how do you write a 2 condition if statement? Can you use a & or And? Thanks as always! B4X: If Counter > 4 & Name = "test" Then Log(Name & Counter)
I may be overthinking this, but how do you write a 2 condition if statement? Can you use a & or And? Thanks as always! B4X: If Counter > 4 & Name = "test" Then Log(Name & Counter)
Star-Dust Expert Licensed User Longtime User Oct 18, 2021 #2 B4X: If (Counter > 4) and (Name = "test") Then Log(Name & Counter) Upvote 2
giga Well-Known Member Licensed User Longtime User Oct 18, 2021 #3 Thank you, I will give it a try! Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 19, 2021 #4 Note that the parenthesis are not required in this case: B4X: If Counter > 4 AND Name = "test" Then Log(Name & Counter) Upvote 1
Note that the parenthesis are not required in this case: B4X: If Counter > 4 AND Name = "test" Then Log(Name & Counter)