On Friday, 5 Jan 2018 at 13:44, Uwe Brauer wrote: > What I meant is this. I understood what you meant and your code is working properly. You are checking the second column which is the column labelled E1, not the one labelled E2 which is actually the third column... change your if statement to check $3, not $2. -- Eric S Fraga via Emacs 27.0.50, Org release_9.1.6