cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional WWI Output Question

Former Member
0 Kudos

Hello,

I am trying to print out a table of prop 65 components per the standard property tree node. I can get the table to print properly, but what I cannot get is a blank compression to work as I am expecting. My code is as follows,

<11BRG001(M,SAP_EHS_1023_055;*)>

<11BRG002(S:POS;1)>

<13BNG011(+:01GESTRIDENT(I:NAM,SYN,))>

<03EHS_L_TEXT(CED-H03.00000001)[D:Chemical Name]> <03EHS_L_TEXT(CED-H02.00100020)[D:CAS-No.]>

<13CNG011>

<03EHS_L_TEXT(CED-U15.00000320)[D:This product does not contain any chemicals known to State of California to cause cancer,...]>

<13ENG011>

<11ERG002>

<11ERG001>

<11BRG003(M,SAP_EHS_1023_055;*)>

<11BRG004(S:POS;*)>

<13BNG012(+:01GESTRIDENT(I:NAM,SYN,))>

<01GESTRIDENT(I:NAM,SYN,)> <01GESTRIDENT(I:NUM,CAS,)>

<13ENG012>

<11ERG004>

<11ERG003>

What am I missing? As far as I read the code This should exit the blank compression if there is no NAM SYN present in the composition of the Prop 65 node, and then print the phrase "This product does not contain..." but this code outputs nothing when tested. Is this due to information being present without comp information being present? Sorry if this is rambling, I am new to WWI work in general.

Thanks,

Nate

Accepted Solutions (0)

Answers (2)

Answers (2)

Mark-Pfister
Active Contributor
0 Kudos

Hi Nat,

I think (without reacoding it myslef) the issues is this part:

<11BRG002(S:POS;1)>

When you do not have a Cal. Prop 65. component present - there is no composition and therefore no S:POS 1! Therefore all the code under S:POS 1 is never executed.

I think you would need to solve this via a Stack. Push a value to the stack, when printing some Cal. Prop 65 substances. Later in a second step check if you have put anything on the stack: If you didn't put anything on the stack print the phrase "CED-U15.00000320 [D:This product does not contain any chemicals known to State of California to cause cancer,...]>".

Check: 1566397 - EH&S standard WWI processing methods on how to use the stack.

Hope this helps

Mark

christoph_bergemann
Active Contributor
0 Kudos