This is such an easy problem to solve that there’s no reason not to. Simply write the dialog text calc as follows:
"Really export " & Get ( FoundCount) & " record" &
If ( Get ( FoundCount) > 1 ; "s" ; "" ) &
" to Excel?"
That’s all there is to it… unless like many developers, you hate the idea of making the FileMaker calc engine work harder than necessary — why should it have to calculate the found count twice? — in which case your syntax will more likely look like:
Let ( fc = Get ( FoundCount ) ;
"Really export " & fc & " record" & If ( fc > 1 ; "s" ; "" ) &
" to Excel?"
) // end let
In closing I’ll just add that I never want a dialog to draw attention to itself: a simple title, clear wording, no jokes, no strange button names. I know that not all developers feel the same way, but they’re entitled to be wrong once in a while. We all are.