Sothislookslike a normalifstatementlookslike a normalcomparisonoperators.
Butwe'readdingintheselistlogicaloperatorheretosay, andandsoitclosedthatoutthatwedosquigglybracketsandthenweallweregoingtodoisgoingtoprintIt's a puppyandthenagain, forHTMLformattingpurposesrighthere, we'rejustgoingtoprint a break.
Sothisishowthisbasicallylooks, andsowiththatwecandoisyoucangoupheretothething D'ohLodgecalledupPHP, andsowecanseeit's a puppysothatthattriggersbecauseit's a canineandtheages, too, andthenyourpetissocute.
Thereasonisbecauseit's a canineNow, whatifwecomehereandwechangethistocatsonowspeciesequalscateightequalsone.
Whatwillhappenthen?
Sohitfilesaveuploadthelogical.
Andnowsonowthere's nolongeranythingtalkingabout a puppy.
That's just a briefdemonstrationofhowthelogicaloperatorsworkandMaurlesswhenyou'renewtoCodyandyou'regoingtobeusingandororinorderto, toseewhethersomethingshouldbetriggered, that's that's howyou'regonnabedoingthecomparisons.
Butaswitheverythingencoding, thereare a lotmoreoptionsforyou.
SoifyougoovertoPHPdotnet, youcanseethattherearemoreoptionsforlogicaloperators, as I showedyou.
Ah, I usethestandardwaythat I learned a codeforusingandorusingorsoagaineitherthetwouprightsforOrorthetwothetwoandsymbolsforandah, butnphp.
Youcansimplytype, andifyoulike, youcantypeorifyoulike, orthissomething's or X o.
R.
Ifeither A or B istrue, butnotboth.
Sothat's onethingthatthatthatcouldbe a littleconfusing, especiallywhenyou'recoding.
So, basically, if A istrueand B isfalse, thenit's true.
Basically, allyou'redoingisyou'rejusttying a lotofdifferentcomparisonstogetherandseeingwhetheryouknowmultiplethingsaretrue.
Onethingistrue.
Onethingisfalse.
Soonandsoforthagain.
Thisisoneofthereasonsthat I wouldtellyouit's a goodideatopickup a 20 or $30 bookbecauseonceyoustartlookingatthingslikecomparisonoperatorsandtherestofthis, ifyoucouldjustopenup a bookyouhave, youhave a dogearedandyoucanlookatexactlywhatyou'redoing.
Itmakeslife a loteasieragain.
Thisparticularbookguesthaseverythinglistedouthere, andso, especiallywhenyou'renewtoCodyandyoucouldjustgookay, I needtodothis, and I neededtodothatandagainmakeslifeeasy.