I feel stupid: If Statement?

BlitzMax Forums/BlitzMax Beginners Area/I feel stupid: If Statement?

Well I've looked through the documents and couldn't find anything on IF statement... I'd like to know if this works correctly if else statement.. would it be writen like this?

if expression then
//do this
else
//do this
endif

Is that correct? if not what is the right way ? :)
And dont ask me why i didnt check for myself xD
(cuz i feel stupid for not trying myself but im already here) LOL

where is the info about this in the documents?