use brackets inside use cases

0 votes
asked Apr 27, 2017 in Wanted features by Bryan (340 points)
I want to have a use case something like:

( "query X\n(and X attributes)" )

You can see that I've attempted to escape the first ) with quotes, and I also tried with \. In all cases I got an error.

What is the appropriate syntax to get a bracket inside a use case?

Thanks in advance,

Bryan

2 Answers

0 votes
answered Apr 27, 2017 by Serge Wenger Work (15,620 points)

You can use html escape:

( query X\n (and X attributes ) )

0 votes
answered Apr 27, 2017 by Bryan (340 points)

I've found another solution:

Instead of defining as above,

define using this alternative syntax

use case X as "query X\n(and X attributes)"

 

 

commented Apr 28, 2017 by Serge Wenger Work (15,620 points)
Your solution is simpler and better (I already do this in an old project, but I don't remember...)
...