Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Two Separate Next Statements in one Rule

AMN3161
Advocate

Two Separate Next Statements in one Rule

AMN3161
Advocate
Advocate

I am newer to ilogic

 

but can someone post a simple example of have two next statements in a rule

 

Like 

 

If A=b then

 Next Statement A

Else if A=c

Next Statement B

End if

 

I am not sure how to isolate next statements 

0 Likes
Reply
139 Views
1 Reply
Reply (1)

WCrihfield
Mentor
Mentor

I am not sure what you are trying to accomplish with this.  "Next" is a keyword in VB.NET (Link1, Link2), which is used at the end of a loop, such as (For Each Item In Items...do something with Item...Next), or (For i As Integer = 1 to 10...do something...Next).  That keyword is used to cause the process to return to the start of the loop, and advance to process the next item in the collection, or next Integer in a count.  Maybe you are meaning to use 'GoTo' there, such as If something evaluates to True, GoTo MyCodeBookmark1 (where MyCodeBookmark1 represents a position somewhere in your code that you want it to jump to.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes