Matt5678, if you knew you were dreaming.. then you had a lucid dream!

Congratulations as any lucid dream (no matter how short) is something to celebrate!

Also the important thing to remember is that you got lucid and that it will happen again! Remaining in a lucid dream will come with practice!