In reply to ajp0:
You are using a variable where a constant expression is required. Assertions get synthesized at compile time, and certain constructs like replication need to be fixed. It’s too late to change the value at run time.
Your options are to change the plusarg to a +define at compile time, then use [->`NUM] in your assertion, or change your assertion code to use a different set of constructs.