Sothefirstthingthatwe'regoingtodohereisjustverifywhatthevaluewe'resendingtotheifstatementISSsowe'regoingtodoisreadytoprintdoublequotationmarksandthenwe'regoingtodoyourageissothisisallprintedout, a normaltextandthenbysimplyputtingdollarsignageorwhateverthevariablenameisthatwillprintoutthevalueforthatvariable.
Butusing a basicifstatementisoneofthosewaysonethingsthatgets a lotofnewprogrammerscomputeconfusedastheyseetheifelse's andtheifelse's withelseifs.
Andtheythinkthattheyhavetodothateverytimethatthey'regoingtotrytotestfor a condition.
Soit's important.
Understandthatyoucanuse a simple, ifstatementonitsown.
So, basically, ifif a chunkofcodeissupposedtorun, ifonethingistrue, andifnot, itdoesn't needtorunthatyoucouldjustbasicallyput a simpleifstatementinthere, youdon't havetoputinadditionalelse.