cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How can I emphasize an impex macro if it is part of a string?

geffchang
Active Contributor
0 Likes
305

We can do something like this:

$prefix=alpha
$contentCatalog=$prefixContentCatalog

... and $contentCatalog will return "alphaContentCatalog".

Can I make the macro more explicit with something like:

$contentCatalog={$prefix}ContentCatalog

... so that I can immediately see that the macro is $prefix? Is there a syntax for this?

Accepted Solutions (1)

Accepted Solutions (1)

geffchang
Active Contributor

There is no syntax for this. A good workaround is a convention like below:

$_prefix_=electronics
$_contentCatalog_=$_prefix_ContentCatalog

Reference: https://stackoverflow.com/questions/62556835/how-can-i-emphasize-an-impex-macro-if-it-is-part-of-a-s...

Answers (0)

Ask a Question