Jump to content

If statement. Small code, should be easy


Snooble

Recommended Posts

That's the whole idea of if/elseif/else. Once it enters one of the blocks, it doesn't enter the others.

 

If something is true- do action1.

elseif something is true -> if the first condition was false and this condition is true- do action2.

elseif something is true -> if the last elseif was false and this condition is true -> if the first condition was false, the previous condition was false is true and this condition is true -> do action3.

else -> if everything was false- do action4.

 

Get the idea? :)

 

Orio.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.