The query is working any way correctly. It is only a aprt of a big query. @var will either contain null or will contain a sequential guid.
I have a query,SELECT
TOP (@BatchCount)column1,column2, column3 FROM [table]
WHERE[column1] > @var
is Null ORDER BY column1;...
Separate names with a comma.