You don't need a #macro or #set directive. The key is using curly brackets for the #else directive.
#if($plural)were#{else}was#end
From the doc (almost at the end of the Conditionals section):
One more useful note. When you wish to include text immediately following a #else directive you will need to use curly brackets immediately surrounding the directive to differentiate it from the following text. (Any directive can be delimited by curly brackets, although this is most useful for #else).
NOTE: Regardless of what the doc says, I since found that it can be necessary to add the curly brackets when using a simple inline if statement.
#if($includePrefix)Affected #{end}Inspection