Question: This sytax is in razor that I am converting to knockoutJS.. any help much appreciated..

```
Where ItemStatus.Active is 0 in an enum in c# ( backend )

@foreach (var employee in Employees.Where(x => x.Status == ItemStatus.Active))
{   
  <div class="someclass”>
  <span class="label">Name:</span>
  <span class="value">@employee.Name</span> 
  </div>
}

```

How do I replicate this logic in knockout foreach, ie I only want to show employees who are currently active or employed

Thank you

Answer: 
Your semantics are incorrect. Just before your `if` statement, insert

```
print (guess, answer)

```

This is basic debugging. You'll see the problem: `answer` is a list of all the capitals; there's no way that raw user input can be equal to an entire list. You need to compare against only the capital for that one state.

You'll have to make a similar check on `choice`, as you've made teh same mistake there.
There are a few things wrong with the code provided. Here's a working version with inline comments to explain what's going on. While loops allow you to check the input data before moving on.

```
def main():

    capitals = {'AL': 'Montgomery', 'AK': 'Juneau', 'AZ': 'Phoenix',
                'AR': 'Little Rock', 'CA': 'Sacramento', 'CO': 'Denver',
                'CT': 'Hartford', 'FL': 'Tallahassee', 'GA': 'Atlanta',
                'HI': 'Honolulu', 'ID': 'Boise', 'IL': 'Springfield',
                'IN': 'Indianapolis', 'IA': 'Des Moines', 'KS': 'Topeka'}

    # initialize variables used in while loops
    choice = '' 
    guess = ''

    print("Choose a state from the list: {0}".format(' '.join(capitals.keys())))

    # as long as choice is not in the list of capitals, keep asking
    while choice not in capitals.keys():
        choice = input('Which state would you like to guess? : ')

    # get the correct answer for the chosen state
    answer = capitals[choice]

    # as long as the guess doesn't contain any non-whitespace characters, keep asking
    while guess.strip() == '':
        guess = input('Guess the capital of the state chosen : ')

    # if the cleaned up, case-insensitive guess matches the answer, you win
    if guess.strip().lower() == answer.lower():
        print("Yay! You're CORRECT!")

    # otherwise, you lose
    else:
        print("Sorry, You're INCORRECT!")

main()

```