Message 1 of 9
For loop for repeated operation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an i-logic rule to be executed for 20 different parts.
Select Case N01_Dia ''N01_Dia=10.3 Case 10.3 If N01_Sch = "sch-5" Then N01_Thk = 1.24 Else If N01_Sch = "sch-10" Then N01_Thk = 1.24 Else If N01_Sch = "sch-20" Then N01_Thk = 1.24 Else If N01_Sch = "sch-30" Then N01_Thk = 1.24 Else If N01_Sch = "sch-40" Then N01_Thk = 1.73
End If
''N01_Dia=13.7
Case 13.7
If N01_Sch = "sch-5" Then
N01_Thk = 1.65
Else If N01_Sch = "sch-10" Then
N01_Thk = 1.65
Else If N01_Sch = "sch-20" Then
N01_Thk = 1.65
Else If N01_Sch = "sch-30" Then
N01_Thk = 1.65
Else If N01_Sch = "sch-40" Then
N01_Thk = 2.24
End if
End Select
The above same conditions needs to apply for Part name N02, N03, N04... up to N20.
if write individually the rule size will be big,
i will be selecting parameter number of pipe <=20 depending on my requirement, to which the rule should run for that many number of pipe
Please help me with a for-loop condition