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!

duplicate post: 

https://community.endnote.com/t5/EndNote-How-To/How-to-include-in-the-footnote-EITHER-the-field-quot-Cited-Pages/m-p/153895#M27958

how to get the solution?