Forum Discussion

dahund79's avatar
dahund79
Copper Contributor
Feb 03, 2020
Solved

unable to use let in log analytics query "No tabular expression statement found"

Creating a simple variable using let fails with "No tabular expression statement found" my code,

 

let myvar=4;

 

why can i not do this

5 Replies

    • dahund79's avatar
      dahund79
      Copper Contributor
      Hey, i am not Really using it just trying to create a variable, for testing.
      • ScottAllison's avatar
        ScottAllison
        Iron Contributor

        dahund79 Simply declaring the variable will fail since it's not being used in a query. CliveWatson 's example above shows how to potentially use the variable in a query. 

Resources