AnsweredAssumed Answered

set more values using "if true then"

Question asked by Lasse Nielsen on Mar 9, 2017
Latest reply on Mar 9, 2017 by Peter Brinkhuis

Hello forum,

 

Does anyone know if you can set two or more strings in on go?

 

Currently my code looks like this

 

If PPPP.Value = True Then Material = "PP-H 100, RAL 7032"

If PPPE.Value = True Then Material = "PE-100, RAL 9005"

If PPPP.Value = True Then MaterialCode = "PP"

If PPPE.Value = True Then MaterialCode = "PE"

 

But if would like to set Material and MaterialCode in one line of code, so both PP strings gets set if PPPP.value = true and both PE strings gets set if PPPE.value = true

 

something like this

If PPPP.Value = True Then Material = "PP-H 100, RAL 7032" (also) MaterialCode = "PP"

If PPPE.Value = True Then Material = "PE-100, RAL 9005" (also) MaterialCode = "PE"

Outcomes