Velocity is a server-side template language used by Confluence to render page content. Velocity allows Java objects to be called alongside standard HTML.
A variable in velocity looks like this:
To set a variable:
#set ($message = "Hello")
A basic if statement:
1 2 3
#if ($message == "Hello") Message received and is "Hello" #end
See the Velocity user guide for a more comprehensive introduction to Velocity.