Question: The below will only print 'try again' or follow the exit path. How do I meet the two word criteria (IE 'go' and 'north' for the if statement) on the first two statements, while also being able to meet the single word criteria of the 'exit' elif statement.

```
proceed = ['go', 'walk', 'travel', 'move']
direction = ['north', 'east', 'south', 'west']

while True:
    choice = input("> ").lower()
    # result = choice.split()

    if choice in proceed and choice == direction[0]:
        print("you proceed north")
    elif choice in proceed and choice == direction[1]:
        print("you proceed east")
    elif choice == 'exit':
        exit(0)
    else:
        print("try again")

```

Answer: 
It's an issue with string/boolean parsing.

This is an example of your current code:

```
document.getElementById('milkLover').checked = output_data_lines[i].split('|')[1];

```

Which is effectively translating to this, which is incorrect:

```
document.getElementById('milkLover').checked = 'false';

```

It should be this, a boolean:

```
document.getElementById('milkLover').checked = false;

```

The 'checked' property is looking for a boolean value, but you're passing a string instead. Anything that isn't 0, false, or a reference to an object holding either will automatically pass as true. You need to parse your input from string, into boolean. You can do that quite simply with something like this (as far as I know, this is the only way to parse strings as booleans in Javascript):

```
var isTrueSet = (output_data_lines[i].split('|')[1] === 'true');
document.getElementById('milkLover').checked = isTrueSet;

```

If you use this temporary variable to parse all your strings to booleans within each 'if' statement for a checkbox or radio field, your code runs perfectly - [as seen here](https://codepen.io/uncle_ron/pen/ZEKzaJG)
If you write a boolean propery to your text file it becomes a string, e.g.
false -> "false".
And if you cast a string into a boolean (checked) "false" becomes !!"false" == true