Syntax
if [ expression ] then Statement(s) to be executed if expression is true fi
Example
#!/bin/sh a=10 b=20 if [ $a == $b ] then echo "a is equal to b" fi if [ $a != $b ] then echo "a is not equal to b" fi
if [ expression ] then Statement(s) to be executed if expression is true fi
#!/bin/sh a=10 b=20 if [ $a == $b ] then echo "a is equal to b" fi if [ $a != $b ] then echo "a is not equal to b" fi
Have you ever considered about including a little bit more than just your articles? I mean, what you say is valuable and all. But think about if you added some great pictures or videos to give your posts more, “pop”! Your content is excellent but with images and clips, this website could undeniably be one of the best in its field. Fantastic blog!