Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Michael.Navara
in reply to: cnoJTCG6

SharedVariable concept is great, when you need to share values between rules or for a long time (Inventor session). But for this case is it possible to use just shared variable in this rule. This shared variable lifetime is until you edit or regenerate the rule. 

Sub main
	If disabled Then Return
		
	Dim result = InputListBox("prompt", New String() {"a", "b", "disable" }, "a", "title", "list name")
	MsgBox(result)
	
	If result = "disable" Then
		disabled = True
		MsgBox("DISABLED BY USER")
	End If

End Sub
Shared disabled As Boolean = False