if statements Flashcards
(4 cards)
1
Q
what are if statements
A
will perform certain tasks depending on whether a condition is met
2
Q
how do you run code if both variables are true
A
if (ans && ans2)
3
Q
how do you run code without needing both variables to be true
A
if (ans || ans2);
4
Q
how to make variables false
A
!ANS