How to mkdir in if statement
<p>I'm new to coding and trying to teach myself. I was wondering why I keep getting "notcoolbeans" instead of creating the directory?</p>

<pre><code>!/bin/sh
if [ $mkdir /Users/Matt/Desktop/Yaya = 1 ];
then
     echo "theres beans"
else
     echo "notcoolbeans"
fi
</code></pre>

<p>The directory does not already exist. I am trying to make it.</p>