Login Page - Create Account

Support Board


Date/Time: Wed, 30 Apr 2025 10:58:55 +0000



Post From: Study won't exit?

[2025-04-21 16:35:08]
User431178 - Posts: 656
Even with setting the "sc.LastCallToFunction = 1; " shouldn't it have stopped and exited the code from running? That's what I thought setting that flag would do.

No, do you even bother to read the docs?
sc.LastCallToFunction is read-only and set by the study itself.

ACSIL Interface Members - Variables and Arrays: sc.LastCallToFunction


I don't know what changed but now it just keeps calling the main SC function.
When the study function would be called is also documented: Working with ACSIL Arrays and Understanding Looping: When the Study Function is Called