cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
I have a question
I have a question
Jul 25, 2011 at 4:10pm UTC
ziodice
(134)
This is probably a stupid question, and it's probably been asked before, but can you have an if statement within an if statement?
Jul 25, 2011 at 4:11pm UTC
Disch
(13742)
yes
1
2
3
4
5
6
7
if
(blah) {
if
(blarg) {
// code that will only be run if both blah and blarg are true
} }
Jul 25, 2011 at 4:12pm UTC
ziodice
(134)
Thanks for answering.
Topic archived. No new replies allowed.