If statements leading to other if statements

I am trying to make a code lock type device and want to be able to have

if this: then move to new if statement

else: move to this new if statement

is there a way to do this?

dinochickennuggets:
I am trying to make a code lock type device and want to be able to have

if this: then move to new if statement

else: move to this new if statement

is there a way to do this?

Don't understand what you are asking. It might be better just to present as an example for your application.

if this: then move to new if statement
else: move to this new if statement
is there a way to do this?

if (someCondition) {
  if (some2ndCondition) {
    if (some3rdCondition) {
    } // End 3rd condtion
  } // End second condition
} else { //end first condition and do else instead
 // Do else stuff
} //End of else

I was wondering if there is a way to do something along the lines of
if button one is pressed then continue to next if statement
else if continue to this if statement.

Hey, yeah, take a look at this thread:

HTH

a7

Duplicate topics merged

Cross-posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting will result in a suspension from the forum.

In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum board. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.