PHP-and-MySQL/C2/Logical-Operators/Khasi
From Script | Spoken-Tutorial
Revision as of 23:09, 1 September 2017 by Meboreen Mary (Talk | contribs)
Time | Narration |
00:00 | Khublei ngi pdiangsngewbha ia phi sha ka spoken Tutorial halor ki Logical Operators. Kadei ka jinghikai kaba suk bha tangba ia mynta ngan buh ia ka kumta. |
00:09 | Ngan pyndonkam ia ka nuksa jong ka "if" statement sa shisien namar kadei tang kane kaba nga don ia mynta. |
00:18 | Kaei ka logical operator? To ngin pyndap khyndiat ka logic bad ong kadei ka AND lane ka OR operator. |
00:27 | Mynta, lada nga shna ia ka layout na ka bynta ka if statement jong nga, ngan treikam ha kaban pyni ia phi kaei kaba phi lah ban leh bad kine. |
00:43 | Nyngkong ngi don ia ka nuksa kum '1 is greater than 1' kaba ia mynta kan return False |
00:54 | To ngin check ia ka ban peit haei ngi don..... Kadei! Te kadei "False". |
01:04 | Mynta, long kumno lada nga ong "if 1 is greater than 1 or equals 1". |
01:18 | Mynta ngim thoh ia ka kum 'or', ngi thoh ia ka kum artylli ki lines ba pynieng lane artylli ki pipes. |
01:26 | Phim thikna bha shaphang kata tangba lada phi tip ia ka keyboard jong nga, kan don marbud bad u shift key – artylli ki lines kiba mut 'OR'. |
01:38 | Te, lada ngi compile ia kane, kaei kaba phi tharai ka result kan dei? |
01:43 | Mynta to ngin run ia ka shisien – lada 1 u kham heh ban ia u 1 - "false" bad kumta ngi la thoh "false" lane 1 u iaryngkat bad u 1... |
01:54 | Ngi tip ba 1 equals to 1 kadei "true". Te, hangne ngi ong OR 1 u iaryngkat bad 1, kam dei AND; namar ngi la dep ong AND te baroh kin hap ban dei "true". |
02:09 | OR, kawei na kine ka hap ban dei "true" ban pynlong ia kane. |
02:12 | Ka output. Te ngi kyrmen ngi ioh "true". |
02:16 | Te, kato ka dei ka OR. |
02:18 | Kham bunsien ka ailad ia phi ban shim artylli ki comparison, pyni ia ki ha ka if statement bad lada kawei na ki kadei "true" – te ka long kum ka "either" operator... |
02:30 | "either" kawei na ki kadei "true", phin sa sah bad ka "true". |
02:34 | AND operator ka kham pher. |
02:39 | AND ka donkam ba baroh artylli ki dei ban dei "true" na ka bynta ban execute ia kane. |
02:46 | Te ngi ioh "false" hangne namar ba 1 um dei ba kham heh ban ia u 1. |
02:51 | Ngin phai biang sha ki comparison operators bad ngin ong "if 1 is greater than 1 or equal to 1 AND (&&) 1 equal 1", hangne ngin sa ioh "true". |
03:04 | Te mynta, baroh kaba nga lah ban pyrkhat shaphang ban add ia ki katto katne ki variables ha kane ka test. |
03:10 | Bad nga thikna bha ba phi la don ia ka jingtip jong ki variables da kaba bud ia kiwei pat ki jinghikai jong nga. |
03:17 | Te kine artylli kidei ki logical operators. |
03:20 | Phin sa shem ia ki kiba iarap bha namar lehse phi kwah ban ong, kum ka nuksa: kane kadei ka nuksa ba paw bha; phin shem ia ka ha kawei na ki projects jong nga. |
03:30 | Kadei ka "login" form. Shu ong noh, u user u kwah ban 'login' ha ka website. |
03:35 | Phi la dep logged in ha ka website ha shwa bad ka ong ban pyndap ia ka "username" bad "password" jong phi. Mynta ki keywords kidon hangne. |
03:43 | Ngi donkam ban check lada ki users ki la pyndap ia ka "username" bad ka "password". |
03:48 | Lada kim pat dep kam don jingmut ban ianujor ia ka "username" sha ka "password". |
03:52 | Te ngi lah ban ong, kum ka nuksa: |
03:54 | Lada ka username, ha ka jingshisha to ngin leh ia kane, ngan ong '$username' is equal to "alex" bad ka '$password' jong nga is equal to "abc". |
04:04 | Mynta ngan substitute ia kine. Nga lah ban ong "username" AND (&&) "password". |
04:11 | Ha kane ka khyllipmat mynta, kane kan ong "True". |
04:15 | Ngan pynkylla ia kane. Ngan ong "OK" lane "you forgot to fill out a field" namar ba kin sa don ki HTML fields. |
04:27 | Kane kan sa long biang beit namar ba ngi don baroh artylli ki values. |
04:32 | Te , ngin pyrshang ia kane. Haoid , kadei ban ong "OK".’ |
04:37 | Mynta kan jia aiu lada nga klet ban type ia ka password hangtei? Kam don eiei ia mynta hangtei – ym don space – to ngin iaid lait na katei. |
04:48 | "You forgot to fill out a field". |
04:50 | Te lada phi pyrkhat kine ki wan na u user – te lah dep submit ha mar ba phi type ia ka "username" and "password" ha ka. |
05:00 | Ngi ia ong "username" bad "password"; kham bunsien "username" da lade ka dei "true" namar ba la don. |
05:07 | Lada phi don ia kata hapoh, kata kan sa shah pdiang; kata kan sa dei "true". |
05:14 | Ngin shu check ia katei , bad kumta ngi iaid. |
05:18 | Te, namar ba ngi don ia ka "username" and "password" bad ka "password" te ka biang. |
05:23 | Tangba na ka bynta ka 'OR' kata kam da don jingmut shibun bad phi lah ban pyrkhat kaei kaban jia. |
05:29 | Te mynta, kane kan iaryngkat bad "true" namar ba ngi don ia baroh artylli ki values. Te kane kadei "OK". |
05:36 | Mynta lada nga leit bad ki baroh ar bad nga pyrshang ia ki. |
05:41 | Lada ka username kadon, te ka username kadei "True"... |
05:45 | Ha ka khyllipmat ba mynta, kam don ia uno uno u value – te kadei "False". |
05:48 | Lane ka password kadei true – kata ka dei ba u value u don, ia mynta kam don, te kadei "False". |
05:56 | Te, ngin ia ong "You forgot to fill out a field". |
06:00 | Ngan shu thoh hangne "Nothing" namar ha ka khyllipmat mynta kam mut eiei. |
06:05 | Te refresh. Ngan pynlong ia ka "Nothing". |
06:08 | Te phi iohi, nga la dep batai lypa katno kine ki long kiba iarap ha kiba bun ki php applications ba man ka sngi. |
06:17 | Kum ka nuksa – ka form mano re mano lah ban pyndap. Phi lah ban shem shibun kiwei ki users na ka bynta jong ka. |
06:22 | Tangba tang katto hi. |
06:24 | Artylli ki operators kiba long logical operators . |
06:27 | Shu pyrshang ia ki bad peit kiei kiba phi lah ban leh bad ki. |
06:31 | Ngan pyndonkam ia ki thikna bha ha kawei na ki projects jong nga shen hi. |
06:35 | Khublei shibun. |
06:37 | Nga i Meboreen na Shillong nga dubbed na ka bynta ka Spoken Tutorial project. |