The Dink Network

Reply to Re: Potion puzzle [and coding in general]

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
February 12th 2018, 12:43 AM
wizardg.gif
LeprochaUn
Peasant He/Him Japan bloop
Responsible for making things not look like ass 
If statement will only execute as far as first condition is met. So, for an example, if boo1 and boo2 come out 'true', this code above will fix the boo1 state, but it will completely disregard boo2, and boo3.

That's because you wrote "else if"

Just do if() instead of else if() and it should check all three instead of just one.

Else will only run if none of the other if() conditions are met. As soon as one of them is met it will disregard the else() checks.