># ==LEARNING AT BLOCKFUSE LABS== ## ==WEEK 3== > [time=Sat, Jun 28, 2025 7:42 PM] > [name=AmazingCeazer] INTRODUCTION The begining of week three (3) was fascinating and had alot of less note but getting our hands dirty on our systems. stick around and read how i almost got evicted for been less confident in my self and failing an eviction test. week 3 Starting with laughs,welcoming us from the weekend vibes and excitements our instructor Bankat introduced a topic "LOGIC 101" for us to understand what logic means in bashing scripting you will need to stick around because it intresting and confusing well if you are not abit confuse then it not logic. This are some of the symbols we used to show how logic works in bash scripting using the vim shell and as we move further we will see other shells too. **APPLICABLE SYMBOLS FOR LOGIC 101 ON VIM SHELL** 1.= Assignments 2.== Equality Operator 3.> Greaater than 4.<< less than 5.>= Geater or equal 6.<= less or equal 7.! not or (negation) **DOUBLE PAGE LOGIC SYMBOLS** || double pipe also know as "OR" and also (Logical add. && also known as "AND" (Logical multiplications) or Appasand. Now to dive in deeper there is an idea in logic call the bolean value that is (TRUE and FALSE) or the (0 and 1) or better still (ON and OFF). Now the whole idea of Logic is stating the idea on how something works. For example what happens behide the scene when you try to turn on your system,whats the logic behide your car moving from point A to B and parking as well. Facebook had an issue where 500 thousand accounts where hacked, it's traced back to the logic scripting of the system and was faulted. For further clearification let's paint an idea of "OR" and "ADD" and what the output will be: "OR" 0 (false) + 0 (false) = 0 (false) 0 (false) + 1 (true) = 1 (true) 1 (true) + 0 (false) = 1 (true) 1 (true) + 1 (true) = 1 (true) NB: (for the "OR" one needs atleast one hand to be true for the condition to be "TRUE"). "AND" 0 (false) + 0 = 0 (false) 0 (false) + 1 = 1 (false) 1 (true) + 0 = 1 (false) 1 (true) + 1 = 1 (true) (for the "AND" we need both hands to be true for the condition to be true"). for the example using the appansands || and && 1.True || true = guess the output? using or as an example from the answer above. 2.True && false = false why? because the condtion stated in add haven't been met. we also have the "WHILE AND FOR" conditions and also "IF","ELIF" and "ELSE" condition in a statement or text. example: if [condition]; then do this. and another example: if [condition] elif do this [another condition] or if [condition] else do defualt [another condition] pictoral proof of how this conditions works: while conditions: ![Screenshot from 2025-06-28 19-01-35](https://hackmd.io/_uploads/SkyVCjpNee.png) "IF" and "ELSE" statement ![Screenshot from 2025-06-28 19-04-22](https://hackmd.io/_uploads/SJA1J2TNlx.png) C0mbinging all the statements in one vim shell: ![Screenshot from 2025-06-28 19-06-33](https://hackmd.io/_uploads/SJuFk3TNll.png) ![Screenshot from 2025-06-28 19-06-50](https://hackmd.io/_uploads/ByM9yhTNxg.png) Remember i told you all that i will explain what shell is breifly: A shell scripts a computer program designed to be run by linux shell or UNIX which could one of the following: 1.The Bourne Shell 2. The C shell 3. Then korn Shell 4. The GNU Bourne-Again Shell A shell is a command-line interpreter and typical operations performed by shell scripts including files.Manipulation, progran execution, and printing text. ### CONCLUSION My conclusion will linger around how i almost got evicted. Well a sudden eviction test was given by longz one of the founders and suprisegly only 6 out of 70 persons passed and unfortunately i was among those who failed. Well that got him upset and had to show his dismay and threaten to Evict us but we pleaded and where made to sacrifice everyday to be at the lab. I was scared to marrows despite doing the right thing i couldn't open up and sat numb well that is life and from today henceforth i promise to practice harder and work harder stay glue to my content and be part of my big dream of becoming a Software Engineer.