Saturday, May 15, 2021

How do if statements work together?

There are a few ways that if statements can work together.

It’s possible to nest if statements into other if statements. This means that the ‘then’ part of your if statement triggers another ‘if’.

‘IF [value] is greater than 70, THEN IF [value] is less than 80, THEN IF [run action]’

Then, there’s ‘else if’. ‘Else if’ tells the computer that when the ‘if’ condition is false, it needs to trigger another if statement to determine what to do next.

‘IF an incoming email contains ‘invoice’, THEN forward to [email address], ELSEIF the incoming email does not contain an attachment, THEN add to junk mail.’

If statements also interact separately from each other.

For example, one of your if statements sends some incoming data from your email to the correct database. Then, another of your if statements checks your database for new entries and runs actions on the results.

http://www.blazersedge.com/users/sanjusamson

http://www.bleedinggreennation.com/users/sanjusamson

http://www.blessyouboys.com/users/sanjusamson

http://www.bloggingthebracket.com/users/sanjusamson

http://www.bloodyelbow.com/users/sanjusamson

http://www.brewcrewball.com/users/sanjusamson

http://www.brewhoop.com/users/sanjusamson

http://www.brightsideofthesun.com/users/sanjusamson

http://www.broadstreethockey.com/users/sanjusamson

http://www.bucsdugout.com/users/sanjusamson

http://www.cagesideseats.com/users/sanjusamson

http://www.canescountry.com/users/sanjusamson

http://www.canishoopus.com/users/sanjusamson

http://www.catscratchreader.com/users/sanjusamson

http://www.celticsblog.com/users/sanjusamson

http://www.cincyjungle.com/users/sanjusamson

http://www.clipsnation.com/users/sanjusamson

http://www.coppernblue.com/users/sanjusamson

http://www.crawfishboxes.com/users/sanjusamson

http://www.dailynorseman.com/users/sanjusamson

http://www.dawgsbynature.com/users/sanjusamson

http://www.detroitbadboys.com/users/sanjusamson

http://www.everydayshouldbesaturday.com/users/sanjusamson

http://www.fearthesword.com/users/sanjusamson

http://www.federalbaseball.com/users/sanjusamson

http://www.fishstripes.com/users/sanjusamson

http://www.footballstudyhall.com/users/sanjusamson

http://www.ganggreennation.com/users/sanjusamson

http://www.gaslampball.com/users/sanjusamson

http://www.grizzlybearblues.com/users/sanjusamson

http://www.habseyesontheprize.com/users/sanjusamson

http://www.halosheaven.com/users/sanjusamson

http://www.hogshaven.com/users/sanjusamson

http://www.hothothoops.com/users/sanjusamson

http://www.indycornrows.com/users/sanjusamson

http://www.jacketscannon.com/users/sanjusamson

http://www.knightsonice.com/users/sanjusamson

http://www.letsgotribe.com/users/sanjusamson

http://www.libertyballers.com/users/sanjusamson

http://www.lighthousehockey.com/users/sanjusamson

 

No comments:

Post a Comment