I have a nested if then statmement I am tryining to implement but it is quite difficult as it contains an inner if then statement and an outter if then statment - or an if then statment within an if then statment.
I have three objects - ball, sqaure, triangle - each in three different colors - red, blue, green. Two objects are selected at a time and there is a message boxes that indicates the colors of the objects selected.
I know how to implement then inner if then else statment as..
If ball is red and square is red then msg box "Ball and square are red"
Elseif ball is red and sqaure is blue then msg box "Ball is red, square is blue"
Else if ballis red and square is green then....
........
What I am having difficulty with is how to wrap it inside an outer if then statement consisting of what objects were selected
If ball and square selected then
If ball is red and square is red then msg box "Ball and square are red"
Elseif ball is red and sqaure is blue then msg box "Ball is red, square is blue"
Else if ball is red and square is green then....
........
If ball and triangle selected then
If ball is red and triangle is red then msg box "Ball and triangle are red"
Elseif ball is red and triangle is blue then msg box "Ball is red, triangle is blue"
Else if ball is red and triangle is green then....
........
If square and triangle selected then....
................................