Open vertical help in neovim

I’m new with neovim but I used vim for 1 year

In my vimrc, I have this line to open vertical help file

autocmd BufWinEnter * if &filetype == ‘help’ wincmd L

but in neovim it can’t use and have error:

Are you sure your autocommand works in Vim? I just tested it and it didn’t work.

The correct autocommand should be:
autocmd BufWinEnter * if &filetype == 'help' | wincmd L | endif

Oh, thanks for your reply. Now I found my mistake