VAR works just like ASK, the only difference is that instead of substituting the value into the SQL, it stores it to a variable name. You can then substitute the variable multiple times in your SQL.
This example shows a list of animals of a selected species brought in after the given date. The species and broughtinafter variables could be reused as many times as we like.
$VAR species SPECIES$
$VAR broughtinafter DATE The date the animals were brought in after$
AnimalName, DateBroughtIn
FROM animal
WHERE SpeciesID=$@species$
AND DateBroughtIn >= '$@broughtinafter$'