Using a for Loop with Embedded if Statements (Guards)