How to include in the footnote EITHER the field "Cited Pages" OR the field "Pages"

Hi there,

This is important because when I refer to a whole paper, all the page range of the paper should appear, e. g.,

M. Albright, “How to do this”, JNE 34, 2016, 23-34

But when I cite a specific page, it should appear as follows:

M. Albright, “How to do this”, JNE 34, 2016, 28

How may I let the template know that, if the field “Cited pages” is not empty in the footnote, the field “Pages” must not appear?

Thank you!

how to get the solution?