--- id: 5dbbb00e6ef5fe3a704f849b title: Part 133 challengeType: 0 dashedName: part-133 --- # --description-- We don't want a player's only weapon to break. Use the "logical and" operator (`&&`) to add a second condition to the `if` expression you just wrote. A player's weapon should only be able to break if `inventory.length` does not equal (`!==`) one. Here is an example of an `if` expression with the conditions that `firstName` equals "Quincy" AND `lastName` does NOT equal "Larson". With `&&`, both conditions must be true or else the entire statement evaluates to false. ```js if (firstName === "Quincy" && lastName !== "Larson") { console.log("Cool name but not the creator of freeCodeCamp.org.") } ``` # --hints-- See description above for instructions. ```js assert( attack .toString() .replace(/\s/g, '') .match( /if\(Math\.random\(\)\<\=0?\.1\&\&inventory\.length\!\=\=1\)\{text\.innerText\+\=\"Your\"\+inventory\.pop\(\)\+\"breaks\.\"\;?currentWeapon--\;?\}/ ) ); ``` # --seed-- ## --before-user-code-- ```html