Script from fragment

Dear friends,
I wrote a bash fragment that displays the a file, or creates a file with intermediate directories in the absence of such a file.

[[ -e FILE ]] && cat FILE || touch FILE

I want to do the same thing, but in bash script.
May you explain me how to do that kind of thing.
Thank you very-very much!
P.S I'm a newbie in bash!

This works in bash:

#!/bin/bash
FILE=somefile
[[ -e $FILE ]] && cat $FILE || touch $FILE

Long form:

#!/bin/bash
FILE=somefile
if [[  -e $FILE ]]; then
   cat $FILE
else
   touch $FILE
fi

Notice we use a variable FILE=something , to reference it use $FILE

Mate, thank you SOOOOO MUCH!
wish you all the best!