Login Page - Create Account

Support Board


Date/Time: Tue, 17 Jun 2025 01:05:01 +0000



Post From: Study won't exit?

[2025-04-20 18:15:52]
LTSys2 - Posts: 27
For some reason my study won't exit when it hits the section of code with the disconnected message. It just keeps printing that message on a loop.

Any ideas?

TIA


SCSFExport scsf_MainFunction(SCStudyInterfaceRef sc) {

  if(sc.SetDefaults) {

    // default settings
    
    return;
  }

  if(sc.IsFullRecalculation)
    return;

  if(sc.Input[0].GetYesNo() == false || sc.LastCallToFunction) {

    sc.AddMessageToLog("INFO disconnected", 0);

    return;
  }
}