# Constant Expressions

A constant expression consists of a constant value. Constant values are directly converted to constant command tree expressions, without any translation on the client. This includes expressions that result in a constant value. Therefore, data source behavior should be expected for all expressions involving constants. This can result in behavior that differs from CLR behavior.

The following example shows a constant expression that is evaluated on the server.

Decimal totalDue = 200 + 3;
{
IQueryable<string> salesInfo =
where s.TotalDue >= totalDue
select s.SalesOrderNumber;

Console.WriteLine("Sales order numbers:");
foreach (string orderNum in salesInfo)
{
Console.WriteLine(orderNum);
}
}

Dim totalDue = 200 + 3
Dim salesInfo = _