I have code written containing 2 numerical parameters & 1 text parameter. Once each numerical parameter equals a certain value I would like the text parameter to equal a definition.
I have no problem getting this to work for 1 numerical value but not for 2. The iLogic does not seam to take the second numerical parameter value into account. How do I get iLogic to look at the first value & then also the second before determining the value of the text parameter.
This is my code:
If Parameter("PFC_HEIGHT")=100 AndAlso Parameter ("PFC_WIDTH")=50
Parameter("Name2")="100x50x10"
End If
Sorry, this is my code. I missed a line.
If Parameter("PFC_HEIGHT")=100 AndAlso Parameter ("PFC_WIDTH")=50
Parameter("Name2")="100x50x10"
End If
iProperties.Value("Custom", "Name2") = Name2
Try this:
If PFC_HEIGHT=100 And PFC_WIDTH=50 Then Name2="100x50x10" End If iProperties.Value("Custom", "Name2") = Name2
This didnt work. The second If is ignored by iLogic. Luckily the sum of the parameters is unique for each part so that was a way round the problem. It still doesnt solve it though.