Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

How do you escape a PPM token name in unix IF statement

Highlighted
bzdafro
Collector

How do you escape a PPM token name in unix IF statement

 How do I escape the 2nd token so it stays  [PKGL.P.DATA1]?     I'm trying to see if the token contains a value in an object type.  If the token resolves to [PKGL.P.DATA1]  I know its not used by the object type.    

if [[  [PKGL.P.DATA1] != [PKGL.P.DATA1] ]]; then ......      

1 REPLY
hyllplan
Frequent Visitor

Re: How do you escape a PPM token name in unix IF statement

Put it in vars maybe?
var="[PKGL.P."
var2="DATA1]"

if [[ "[PKGL.P.DATA1]" != "${var}${var2}" ]]; then ......

Ppm starts with resolving tokens
//Add this to "OnDomLoad" event