<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Bash Shell Scripting For Beginners - Logical And &amp; Logical Or</title>
        <link>https://stream.echo6.co/videos/watch/36dd4ba3-613a-44fb-a8bb-74c9d6625f92</link>
        <description>In this video we discuss the logical AND and the logical OR operators in bash. you can get a more in depth explanation of these operators here https://en.wikipedia.org/wiki/Logical_conjunction Source code for the script used in this video ###Bash Logical Or and Logical And### ####Truth Tables### True = TrueFalse = FalseTrue and True   = TrueTrue and False and True and True ...  = FalseFalse and True  = FalseFalse and False = FalseTrue or True    = TrueTrue or False   = TrueFalse or True or False or False ...   = TrueFalse or False  = Falsetrue_var=true false_var=false #you don't have to compare a boolean variable to true, the below way is much better if $true_var = true; then echo 'This variable is true' else echo 'This variable is false' fi if $true_var; then echo 'This variable is true' else echo 'This variable is false' fi if $true_var; then echo 'This variable is true' else echo 'This variable is false' fi ###Logical And if $true_var &amp;&amp; $false_var ; then echo 'This variable is true' else echo 'This variable is false' fi if $false_var &amp;&amp; $false_var ; then echo 'This variable is true' else echo 'This variable is false' fi ###Logical Or if $true_var || $false_var ; then echo 'This variable is true' else echo 'This variable is false' fi if $true_var || $true_var ; then echo 'This variable is true' else echo 'This variable is false' fi End First Script realistic example of using and or echo "enter you age" read age echo "are you a felon or are you innocent?" read criminal_status years=$(expr 18 - $age) if [ $age -ge 18 ] &amp;&amp; [ $criminal_status == "innocent" ]; then echo 'You may purchase a firearm' elif [ $age -le 18 ] &amp;&amp; [ $criminal_status == "innocent" ]; then echo "You are too young kid, come back in ${years} years" elif [ $age -le 18 ] &amp;&amp; [ $criminal_status == "felon" ]; then echo "You are on a bad road kid, stay in school" elif [ $age -ge 18 ] &amp;&amp; [ $criminal_status == "felon" ]; then echo "You are a felon, we can't sell you a firearm!" fi End of second script Subscribe to my YouTube channel http://goo.gl/9U10Wz and be sure to click that notification bell so you know when new videos are released. ₿💰💵💲Help Support the Channel by Donating Crypto💲💵💰₿ Dash Xh9PXPEy5RoLJgFDGYCDjrbXdjshMaYerz Zcash t1aWtU5SBpxuUWBSwDKy4gTkT2T1ZwtFvrr Chainlink 0x0f7f21D267d2C9dbae17fd8c20012eFEA3678F14 Bitcoin Cash qz2st00dtu9e79zrq5wshsgaxsjw299n7c69th8ryp Etherum Classic 0xeA641e59913960f578ad39A6B4d02051A5556BfC USD Coin 0x0B045f743A693b225630862a3464B52fefE79FdB Bitcoin bc1qyj5p6hzqkautq4d3zgzwfllm7xv9wjeqkv857z Ethereum 0x35B505EB5b717D11c28D163fb1412C3344c7684d Litecoin LQviuYVbvJs1jCSiEDwWAarycA4xsqJo7D DOGE D7MPGcUT4sXkGroGbs4QVQGyXqXd6QfmXF</description>
        <lastBuildDate>Mon, 13 Apr 2026 16:53:58 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>PeerTube - https://stream.echo6.co</generator>
        <image>
            <title>Bash Shell Scripting For Beginners - Logical And &amp; Logical Or</title>
            <url>https://stream.echo6.co/client/assets/images/icons/icon-512x512.png</url>
            <link>https://stream.echo6.co/videos/watch/36dd4ba3-613a-44fb-a8bb-74c9d6625f92</link>
        </image>
        <copyright>All rights reserved, unless otherwise specified in the terms specified at https://stream.echo6.co/about and potential licenses granted by each content's rightholder.</copyright>
        <atom:link href="https://stream.echo6.co/feeds/video-comments.xml?videoId=36dd4ba3-613a-44fb-a8bb-74c9d6625f92" rel="self" type="application/rss+xml"/>
    </channel>
</rss>