Printing the name of a room in Caps on my whim

There are before and after ‘printing the name of a room’ actions, but can you actually access the printed name itself with these rules?

For instance, to italicise all room names, you can put an italic tag in the before rule and a ‘regular’ style tag in the after rule.

But what if I want to capitalise the room name itself, and only if a certain flag is currently set? Normally you have to use indexed text to capitalise on the fly, right? Is there a way to inveigle this kind of thing into these printing actions?

Thanks.

Something like this?

For printing the name of a room (called place): say the printed name of the place in upper case.

Thanks, that’s the kind of thing I was after.