LESSON 1 - Part B:  Person Type, Gender & Globals

Exclusion With Pizzazz (continued)

If statement 0 is false, however, it will go to statement 11 where it will shock the heck out of all females plucky enough to attempt going through the door.

Select statement 0 and using the Data box, make your True line 10 and your False line 11.

Next, select statement 10, and make it what it used to be: True line 3, and False line 1.

Finally, statement 11, the electrocution bit, will simply return True/False. Why? Because it is an independent behavior. It will only take place if the door encounters a female trying to pass through. If a female goes through, she will be electrocuted, and when the door is done electrocuting, it will stop and remain idle until the next time. If the door does not find a female, then the electrocution behavior will not execute.

Check your behavior against mine statement for statement, and make sure we are on the same page.


Fig. 1.45

If everything matches, then we are ready to test. Click OK to exit the behavior, and then SAVE your file and exit out of IFF. Stick a copy of the door in your holding folder for the sake of posterity.

Time To Test

When testing this door, test in a house with adults and children, male and female, and if at all possible, with dogs/cats both male and female.