Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Token then expected error

I am experiencing a token then expected error for the following code with the first AND underlined in red: if [rev] <1 then "Stopped" else if [rev] >= 1 AND [rev] <= 100000 then "Below $100K" else...
  • BA_Pete's avatar
    3 years ago

    Hi Anonymous ,

     

    Try writing all the "AND"s in lowercase as "and".

    M language is entirely case-sensitive, so this is probably the issue.

     

    Pete