Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

M language if statement

Hi,

 

I am trying to do a IF statement in M language.

 

= if [vat] = "v7" then ([total] *1.2)-[total] else if [vat] = "4" then ([total] *1.05) -[total] 

I am getting a toke else error...

 

Any help.

 

Thanks

  • Anonymous's avatar
    Anonymous
    7 years ago

    Figured it out.. it needs to have an else at the end otheriwse it doesnt work

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Figured it out.. it needs to have an else at the end otheriwse it doesnt work