Is it possible to associate properties with an if statement?

According to GOST standard page numbering in the drawing should be as follows:

  • Current sheet:   Total sheets: 1
  • Current sheet: 1 Total sheets: 2
  • Current sheet: 1 Total sheets: 3 and etc

In a situation where one sheet in the drawing is not shown its number, but only the total number of sheets is shown.

Is it possible?

SolidworksDrawings And Detailing