Forum Discussion

CarlsBerg999's avatar
CarlsBerg999
Icon for Helper V rankHelper V
4 years ago
Solved

Combining column and if sentence

Hi,

 

I'm trying to combine a basic column by using if sentences. However, this 

 

=[Column1] & "/" & if [Column3] = null then [Column7] else ""

However, this produces error "Token Literal expetcted". What is wrong with this simple command..? 

 

Thanks!

2 Replies

  • All you need to do to fix this is put parentheses around the if statement so that it evaluates the expression in the order you intend.

    = [Column1] & "/" & (if [Column3] = null then [Column7] else "")