[{"data":1,"prerenderedAt":48},["ShallowReactive",2],{"lesson-shell:logical\u002Fif-with-math:en":3},{"id":4,"who":5,"role":6,"image":7,"text":8},"if-with-math","Priya Nair","runs Lantern Fest, a small music festival","\u002Fpersona\u002Fpriya.webp",{"none":9,"win":36,"mac":42},{"title":10,"story":11,"steps":12},"Late fees","Saturday is the big day. Bands that arrive late lose 10% of their fee. And every band needs a sound check before it plays. Priya has no time for math. You let Excel do it.",[13,25],{"id":14,"title":15,"intro":16,"how":17,"example":23,"task":24},"math","Calculate inside IF","IF can give back a calculation. Put a formula in the true part or in the false part.",[18,19,20,21,22],"Select the cell for the result.","Type =IF( and the test. Type a comma.","Type the calculation for true. Type a comma.","Type the value for false and a closing bracket.","Press Enter.","=IF(D5>0,C5*0.9,C5)","Find the pay for the other bands. Fill in E6:E12.",{"id":26,"title":27,"intro":28,"how":29,"example":34,"task":35},"not-equal","Test for not equal with \u003C>","\u003C> means not equal to. = means equal to. You can compare text too. Put the text in quotation marks.",[30,31,32,22,33],"Click cell G5.","Type the test with \u003C> and the text in quotation marks. Type a comma.","Type the result if true and \"\" for an empty result. Type a closing bracket.","= means equal to. =IF(F5=\"Done\",\"\",\"Call\") gives the same result.","=IF(F5\u003C>\"Done\",\"Call\",\"\")","Check the other bands. Fill in G6:G12.",{"title":10,"story":11,"steps":37},[38,40],{"id":14,"title":15,"intro":16,"how":39,"example":23,"task":24},[18,19,20,21,22],{"id":26,"title":27,"intro":28,"how":41,"example":34,"task":35},[30,31,32,22,33],{"title":10,"story":11,"steps":43},[44,46],{"id":14,"title":15,"intro":16,"how":45,"example":23,"task":24},[18,19,20,21,22],{"id":26,"title":27,"intro":28,"how":47,"example":34,"task":35},[30,31,32,22,33],1795376394762]