Question: **Problem**

I've tried multiple avenues and watched videos. I'm stuck...

```
function exerciseThree(typeOfPizza){
  let lovesPizza;
  // In this exercise, you will be given a variable, it will be called: typeOfPizza
  // You are also given another variable called: lovesPizza;
  // Using an if/else statement assign lovesPizza to true if typeOfPizza is 'pepperoni', assign it to false if it is 'olives'

```

What I've tried: 

```
if (lovesPizza==='pepperoni') {
    // The value is empty.
    return true;
}
else {
    (lovesPizza==='olives')
    return false;
}

```

Another attempt

```
 // if(lovesPizza===pepperoni){
  //  return true
  //}
  //else (lovesPizza===olives){
  //  return false
//  }

```

Another one

```
  //if (lovesPizza.equals(pepperoni))
    //  return "true";
  //else (lovesPizza.equals(olives))
    //  return "false"

```

Answer: 
As the comments say, you're looking for [if / else](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else#Description). You should also double check your reading of the question, you had your checking / assigning variables the wrong way around

```js
    function exerciseThree(typeOfPizza){
        let lovesPizza;

        if (typeOfPizza === 'pepperoni') {
            lovesPizza = true;
        } else if (typeOfPizza === 'olives') {
            lovesPizza = false;
        }

        console.log('lovesPizza:', lovesPizza);
    };

    exerciseThree('pepperoni');
    exerciseThree('olives');

```
I certainly hope you teacher is playing a trick on you. 
There is no sane suggestions what to do if you send for instance 'ham' into it, and not handle all possibilities are just sloppy.

```
let lovesPizza;

function exerciseThree(typeOfPizza){
  if(typeOfPizza === 'pepperoni') {
    return true;
  } else if (typeOfPizza === 'olives') {
    return false;
  } else {
    return undefined;
  }
}

lovesPizza = exerciseThree('pepperoni');
console.log(lovesPizza); // true
lovesPizza = exerciseThree('olives');
console.log(lovesPizza); // false
lovesPizza = exerciseThree('ham');
console.log(lovesPizza); // undefined

```