AnsweredAssumed Answered

Loop with two Conditions

Question asked by JFWX5 on Jun 18, 2015
Latest reply on Jun 19, 2015 by disabled_jackrodgers



I have the following script that makes sure the user adds the date, prior to the script continuing.




Go to Layout [ “Enter Date of Report” ]


Go to Field [ TrustPolicyReports::Report Date]
Pause/Resume Script [ Indefinitely ]

#Checks to make sure a date is entered for the call sheet

If [ IsEmpty (TrustPolicyReports::Report Date ) ] Loop

Show Custom Dialog [ Title: "Trust Report Requires a Date"; Message: "Please press OK and then enter the date of this Trust Report."; Default Button: “OK”, Commit: “Yes” ]

Go to Field [ TrustPolicyReports::Report Date ] Pause/Resume Script [ Indefinitely ]
Exit Loop If [ not IsEmpty ( TrustPolicyReports::Report Date ) ]

End Loop Else

Perform Script [ “Review Scan and Change Document Name to Final Storage Name 2” ] End If

How do I add a 2nd test to this script to make sure the TrustReports::Trust Company field is also completed before the script continues?

Thank you