[{"data":1,"prerenderedAt":50},["ShallowReactive",2],{"lesson-shell:logical\u002Fifs-nested:en":3},{"id":4,"who":5,"role":6,"image":7,"text":8},"ifs-nested","Priya Nair","runs Lantern Fest, a small music festival","\u002Fpersona\u002Fpriya.webp",{"none":9,"win":38,"mac":44},{"title":10,"story":11,"steps":12},"Stage slots","The festival is over, and it was a success. Priya already plans next year. Bands with more fans play later in the day. Long sets get more drink tokens. Two answers are not enough now.",[13,27],{"id":14,"title":15,"intro":16,"how":17,"example":25,"task":26},"ifs","Check many cases with IFS","IFS checks conditions in order. It gives back the result of the first true condition.",[18,19,20,21,22,23,24],"Select the cell for the result.","Type =IFS(","Type pair 1: a test, a comma, the result and a comma.","Type the next pairs. Start with the largest number.","Type C5>=2000,\"Afternoon\" and a comma.","Type TRUE and a result for all other cases. Type a closing bracket.","Press Enter.","=IFS(C5>=10000,\"Headliner\",C5>=5000,\"Evening\",C5>=2000,\"Afternoon\",TRUE,\"Opener\")","Find the slot for the other bands. Fill in E6:E12.",{"id":28,"title":29,"intro":30,"how":31,"example":36,"task":37},"nested","Put an IF inside an IF","You can put an IF inside another IF. The second IF is the false part of the first IF.",[32,33,34,24,35],"Click cell F5.","Type the first IF with the test and the result if true. Type a comma.","Type the second IF as the false part. Close both brackets.","IFS can do the same: =IFS(D5>=90,4,D5>=60,3,TRUE,2).","=IF(D5>=90,4,IF(D5>=60,3,2))","Find the drink tokens for the other bands. Fill in F6:F12.",{"title":10,"story":11,"steps":39},[40,42],{"id":14,"title":15,"intro":16,"how":41,"example":25,"task":26},[18,19,20,21,22,23,24],{"id":28,"title":29,"intro":30,"how":43,"example":36,"task":37},[32,33,34,24,35],{"title":10,"story":11,"steps":45},[46,48],{"id":14,"title":15,"intro":16,"how":47,"example":25,"task":26},[18,19,20,21,22,23,24],{"id":28,"title":29,"intro":30,"how":49,"example":36,"task":37},[32,33,34,24,35],1795376394806]