So if I could do a flow chart that would be like (I'm not very good at flow charts). I would like the code to check if x<10 and if it is, then do an if/else.
if (x<10)
{
if (y>10)
{
//do something because x is less than ten and y is greater than 10
}
}
More commonly combined:
1 2 3 4
if ( (x<10) && (y>10) )
{
//do something because x is less than ten and y is greater than 10
}
Flow charts are a very old means of thinking about programming and as soon as you start bringing proper classes into the picture become as much of a hindrance as a help. You can get away with using them for very simple programs without persistent states, but even then it's a good idea to get away from thinking in terms of flow charts.