Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 940 Bytes

File metadata and controls

29 lines (25 loc) · 940 Bytes
title ms.date ms.prod ms.technology ms.topic f1_keywords dev_langs ms.assetid author ms.author manager
Expected constant | Microsoft Docs
01/18/2017
visual-studio-windows
vs-javascript
error-reference
VS.WebClient.Help.SCRIPT1031
JavaScript
TypeScript
DHTML
8da7485f-7050-4559-97c3-ccfa782cdff3
mikejo5000
mikejo
ghogen

Expected constant

You attempted to use a (non-conditional compilation) variable in a conditional compilation test statement. Conditional compilation test statements must evaluate to a constant.

To correct this error

  • Replace the variable with a literal.

  • Replace the variable with a conditional compilation variable.

See also

Conditional Compilation
Conditional Compilation Variables